Installation ============ **CpGtools** is written in Python and requires **Python 3.5** or later. Some tools within CpGtools also require **R** and specific **R libraries** to generate plots and fit linear or beta-binomial models. Prerequisites -------------- If these dependencies are not already installed on your system, please install them first: - `Python 3 `_ - `pip3 `_ - `R `_ - R package `aod `_ (required by **dmc_bb.py**) - R package `beanplot `_ (required by **beta_jitter_plot.py**) Dependencies ------------------- You do **not** need to install these manually — `pip3` will automatically install them when you install CpGtools. - `pandas `_ - `numpy `_ - `scipy `_ - `scikit-learn `_ - `weblogo `_ - `umap-learn `_ - `fancyimpute `_ - `bx-python `_ - `pycombat `_ - `matplotlib `_ Install CpGtools using pip3 --------------------------- You can install CpGtools directly from **PyPI** or **GitHub**: .. code-block:: bash $ pip3 install cpgtools # or $ pip3 install git+https://github.com/liguowang/cpgtools.git Install CpGtools from Source ---------------------------- To install CpGtools from source: 1. Download the latest release from `CpGtools on SourceForge `_. 2. Extract and install: .. code-block:: bash $ tar zxf cpgtools-VERSION.tar.gz $ cd cpgtools-VERSION $ python3 setup.py install # install to the default location # or $ python3 setup.py install --root=/home/my_pylib/ # install to a custom location After installation, you may need to set up your environment variables. Below is an example (adjust the path to match your setup): .. code-block:: bash $ export PYTHONPATH=/home/my_pylib/python3.7/site-packages:$PYTHONPATH Upgrade CpGtools ---------------- To upgrade to the latest version: .. code-block:: bash $ pip3 install --upgrade cpgtools