Skip to content

Commit

Permalink
adding information about install the optional features
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Feb 27, 2020
1 parent 0827efd commit 6320b88
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 14 deletions.
47 changes: 35 additions & 12 deletions README.md
Expand Up @@ -30,19 +30,42 @@
* A Python API. See the [documentation](https://docs.karrlab.org/bcforms/master/0.0.1/) for more information.

## Installation
The following is a brief guide to installing `BcForms`. The [Dockerfile](https://github.com/KarrLab/bpforms/blob/master/Dockerfile) in the `BpForms` repository contains detailed instructions for how to install `BcForms` in Ubuntu Linux.

1. Install dependencies
* [Open Babel](http://openbabel.org)
* [Pip](https://pip.pypa.io) >= 19.0
* [Python](https://www.python.org) >= 3.6

2. Install the latest release from PyPI
```
pip install bcforms.git[all]
```
3. Install the latest revision from GitHub
```
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[all]
```

* [ChemAxon Marvin](https://chemaxon.com/products/marvin): optional to calculate major protonation and tautomerization states and draw molecules
* [Java](https://www.java.com) >= 1.8
* [Open Babel](http://openbabel.org)
* [Pip](https://pip.pypa.io) >= 19.0
* [Python](https://www.python.org) >= 3.6

2. Install this package

* Install the latest release from PyPI
```
pip install bcforms[all]
```

* Install the latest revision from GitHub
```
pip install git+https://github.com/KarrLab/pkg_utils.git#egg=pkg_utils
pip install git+https://github.com/KarrLab/wc_utils.git#egg=wc_utils[chem, protonation]
pip install git+https://github.com/KarrLab/bpforms.git#egg=bpforms
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[all]
```

* To draw molecules, `BcForms` must be installed with the `[draw]` option:
```
pip install bcforms[draw]
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[draw]
```

* To install the REST API, `BcForms` must be installed with the `[rest_api option]`:
```
pip install bcforms[rest_api]
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[rest_api]
```

## Documentation
Please see the [API documentation](https://docs.karrlab.org/bcforms).
Expand Down
19 changes: 17 additions & 2 deletions docs/installation.rst
@@ -1,12 +1,13 @@
Installation
============
The following is a brief guide to installing `BcForms`. The `Dockerfile <https://github.com/KarrLab/bpforms/blob/master/Dockerfile>`_ in the `BpForms` repository contains detailed instructions for how to install `BcForms` in Ubuntu Linux.

Prerequisites
--------------------------

First, install the third-party packages listed below. Detailed installation instructions are available in `An Introduction to Whole-Cell Modeling <http://docs.karrlab.org/intro_to_wc_modeling/master/0.0.1/installation.html>`_.
First, install the third-party packages listed below.

* `ChemAxon Marvin <https://chemaxon.com/products/marvin>`_: optional to calculate major protonation and tautomerization states
* `ChemAxon Marvin <https://chemaxon.com/products/marvin>`_: optional to calculate major protonation and tautomerization states and draw molecules

* `Java <https://www.java.com>`_ >= 1.8

Expand All @@ -29,6 +30,20 @@ Latest revision from GitHub
---------------------------
Run the following command to install the latest version from GitHub.::

pip install git+https://github.com/KarrLab/pkg_utils.git#egg=pkg_utils
pip install git+https://github.com/KarrLab/wc_utils.git#egg=wc_utils[chem, protonation]
pip install git+https://github.com/KarrLab/bpforms.git#egg=bpforms
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[all]

Installing the optional features
--------------------------------
To draw molecules, `BcForms` must be installed with the `[draw]` option:::

pip install bcforms[draw]
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[draw]


To install the REST API, `BcForms` must be installed with the `[rest_api option]`:::

pip install bcforms[rest_api]
pip install git+https://github.com/KarrLab/bcforms.git#egg=bcforms[rest_api]

0 comments on commit 6320b88

Please sign in to comment.