Debian Codegraph @

docs/installation.md

raw symbols SCIP
1 # Installation
2
3 ## Create a clean virtual environment (optional but recommended)
4
5 Ideally, before installation, create a clean **python3.6+** virtual environment to deploy the package.
6 Earlier version of Python3 should also work but **Python 2 is not supported**.
7 For example one can use conda or virtualenvwrapper.
8
9 With [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/install.html):
10
11 ```bash
12 mkvirtualenv pycoQC -p python3.6
13 workon pycoQC
14 ```
15
16 With [conda](https://conda.io/projects/conda/en/latest/user-guide/install/index.html):
17
18 ```bash
19 conda create -n pycoQC python=3.6
20 conda activate pycoQC
21 ```
22
23 ## Dependencies
24
25 pycoQC relies on a few robustly maintained third party libraries listed below. The correct versions of the packages are installed together with the software when using pip.
26
27 * numpy>=1.13
28 * scipy>=1.1
29 * pandas>=0.23
30 * plotly>=3.4
31 * jinja2>=2.10
32 * h5py>=2.8.0
33 * tqdm>=4.23'
34
35 ## Option 1: Installation with pip from pypi
36
37 Install or upgrade the package with pip from pypi
38
39 ```bash
40 pip install pycoQC
41 ```
42
43 You can also update to **unstable** development version from test.pypi repository
44
45 ```bash
46 pip install --index-url https://test.pypi.org/simple/ pycoQC -U
47 ```
48
49 ## Option 2: Installation with conda from Anacounda cloud
50
51 **If you want to be sure to get the last version don't forget to add my channel and to specify the last version number**
52
53 ```bash
54 # First installation
55 conda install -c aleg -c anaconda -c bioconda -c conda-forge pycoqc=[VERSION]
56 ```
57
58 You can also get the **unstable** development version from my dev channel
59
60 ```bash
61 conda install -c aleg_dev -c anaconda -c bioconda -c conda-forge pycoqc=[VERSION]
62 ```
63
64 ## Option 3: Installation with pip from Github
65
66 To get the last stable (master) or bleeding edge (dev) version
67
68 ```bash
69 # First installation
70 pip install git+https://github.com/a-slide/pycoQC.git
71
72 # First installation bleeding edge
73 pip install git+https://github.com/a-slide/pycoQC.git@dev
74
75 # Update to last version
76 pip install git+https://github.com/a-slide/pycoQC.git --upgrade
77 ```
78
79 ## Option 4: Clone the repository and install locally in develop mode
80
81 With this option, the package will be locally installed in *editable* or *develop mode*. This allows the package to be both installed and editable in project form. This is the recommended option if you wish to modify the code and/or participate to the development of the package (see [contribution guidelines](contributing.md)).
82
83 ```bash
84 # Clone stable repo locally
85 git clone https://github.com/a-slide/pycoQC.git
86
87 # bleeding edge branch
88 git clone --branch dev https://github.com/a-slide/pycoQC.git
89
90 # Enter in repo directory
91 cd pycoQC
92
93 # Make setup.py executable
94 chmod u+x setup.py
95
96 # Install with pip3
97 pip3 install -e ./
98 ```