.. _installation:
============
Installation
============
The **OpenMiChroM** library can be installed via `conda `_ or `pip `_, or compiled from `source (GitHub) `_.
Install via conda
-----------------
The code below will install **OpenMiChroM** from `conda-forge `_.
.. code-block:: bash
conda install -c conda-forge OpenMiChroM
.. hint:: Often, the installation via conda happens to be stuck. If this is the case, it is recommended to update conda/anaconda using the command line below and try to install **OpenMiChroM** again.
.. code-block:: bash
conda update --prefix /path/to/anaconda3/ anaconda
Install via pip
-----------------
The code below will install **OpenMiChroM** from `PyPI `_.
.. code-block:: bash
pip3 install OpenMiChroM
.. note::
The **OpenMiChroM** library uses `OpenMM `_ API to run the chromatin dynamics simulations.
These requirements can be met by installing the OpenMM package from the `conda-forge channel `__:
.. code-block:: bash
conda install -c conda-forge openmm
The following are libraries **required** for installing **OpenMiChroM**:
- `Python `__ (>=3.6)
- `NumPy `__ (>=1.14)
- `SciPy `__ (>=1.5.0)
- `six `__ (>=1.14.0)
- `h5py `__ (>=2.0.0)
- `pandas `__ (>=1.0.0)
- `scikit-learn `__ (>=0.20.0)