Skip to content

Commit

Permalink
Merge pull request #85 from fls-bioinformatics-core/update-install-docs
Browse files Browse the repository at this point in the history
Update installation documentation
  • Loading branch information
pjbriggs committed Feb 8, 2024
2 parents 0e67419 + 72f4cdd commit 9c8612d
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 78 deletions.
57 changes: 0 additions & 57 deletions INSTALL

This file was deleted.

83 changes: 63 additions & 20 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,45 @@
Getting started
===============

The easiest way to get the latest version of ``RnaChipIntegrator`` is to
use Python's ``pip`` utility to install the latest version of the program
directly from the `Python Package Index (PyPI)
<https://pypi.python.org/pypi/>`_, by doing::
``RnaChipIntegrator`` is Python software which runs with Python
version 3.6 or higher.

pip install RnaChipIntegrator
---------------------------------------------------------------
Installing RnaChipIntegrator from PyPI using virtualenv and pip
---------------------------------------------------------------

.. note::
The recommended way to get the latest version of ``RnaChipIntegrator``
is to create a Python virtual environment, and then install the
software using the ``pip`` utility.

You may need to have root privileges to install to the system
directories, in which case preface this command with ``sudo``
i.e.::
For example: to create and activate a virtual environment called
``venv.rci`` using the ``virtualenv`` utility:

sudo pip install RnaChipIntegrator
::

or you can do::
virtualenv venv.rci
source venv.rci/bin/activate

pip install --user RnaChipIntegrator
``RnaChipIntegrator`` can then be installed using ``pip``, by
running:

to install it under your home area.
::

Alternatively you can use Python's ``virtualenv`` mechanism to install
a non-root version (this example creates one under ``.venv``)::
pip install RnaChipIntegrator

virtualenv .venv; . .venv/bin/activate
pip install RnaChipIntegrator
which will make the ``RnaChipIntegrator`` program available.

.. note::

If using ``RnaChipIntegrator`` from a virtual environment in
this way, make sure to activate the environment each time
before using it, for example:

::

source venv.rci/bin/activate

To deactive the virtual environment afterwards, do ``deactivate``.

.. note::

Expand All @@ -37,10 +50,40 @@ a non-root version (this example creates one under ``.venv``)::
* http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
* https://www.biostars.org/p/109179/

To update an existing version of the program to a newer one, use::
To update an existing version of the program to a newer one, use:

::

pip install -U RnaChipIntegrator

For other ways of installing please refer to the ``INSTALL`` document
included with the distribution.
from within the activated virtual environment.

----------------------------------------
Installing RnaChipIntegrator using Conda
----------------------------------------

Another approach for installing ``RnaChipIntegrator`` to use
`Conda <http://conda.pydata.org/docs/>`__
(most easily obtained via the
`Miniconda Python distribution <http://conda.pydata.org/miniconda.html>`__).

Once you have Conda installed you can create a new Conda environment
with ``RnaChipIntegrator`` installed using the following command:

::

conda create -c bioconda -n rci rnachipintegrator

Alternatively you can install ``RnaChipIntegrator`` into an existing
Conda environment using:

::

conda install -c bioconda rnachipintegrator

.. warning::

It's recommended that ``RnaChipIntegrator`` be installed into a
new Conda environment to avoid issues with incompatible packages
(which is possible for example when trying to install directly
into the Conda's ``base`` distribution).
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def get_version(rel_path):
data_files = [ ('RnaChipIntegrator',
['README.rst',
'LICENSE',
'INSTALL',
'CHANGELOG.rst']),],
include_package_data=True,
zip_safe = False
Expand Down

0 comments on commit 9c8612d

Please sign in to comment.