2019-11-15 16:13:02 +01:00
|
|
|
Introduction
|
|
|
|
============
|
|
|
|
|
|
|
|
This is the Python MsSpec version with support for Python 3.x and dynamic memory allocation for Phagen and Spec
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-06 13:26:22 +01:00
|
|
|
To work with the git repository
|
|
|
|
===============================
|
2019-11-15 11:16:06 +01:00
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
You can clone this repository onto your local computer using git
|
|
|
|
|
|
|
|
```Bash
|
|
|
|
git clone https://git.ipr.univ-rennes1.fr/epsi/msspec_python3.git
|
|
|
|
```
|
|
|
|
|
|
|
|
This will create a folder named "msspec_python3" with all the source code inside.
|
|
|
|
|
2019-12-06 13:26:22 +01:00
|
|
|
It is higly recommended to work in a Python virtual environment.
|
|
|
|
To create one, you can use:
|
|
|
|
|
|
|
|
|
|
|
|
```Bash
|
|
|
|
virtualenv --python=python3 msspec_venv
|
|
|
|
```
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
```Bash
|
|
|
|
virtualenv --python=python3 --system-site-packages msspec_venv
|
|
|
|
```
|
|
|
|
|
|
|
|
to activate the virtual environment (if you are in the folder where you created "msspec\_venv"):
|
|
|
|
|
|
|
|
```Bash
|
|
|
|
source ./msspec_venv/bin/activate
|
|
|
|
```
|
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
Now you can build the program, go in the source folder
|
2019-12-06 13:26:22 +01:00
|
|
|
|
|
|
|
```Bash
|
2020-03-31 18:29:41 +02:00
|
|
|
cd msspec_python3/src
|
2019-12-06 13:26:22 +01:00
|
|
|
```
|
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
Install the python package dependencies.
|
2019-12-06 13:26:22 +01:00
|
|
|
|
|
|
|
```Bash
|
2020-03-31 18:29:41 +02:00
|
|
|
pip install -r setup_requirements.txt
|
|
|
|
pip install -r requirements.txt
|
2019-12-06 13:26:22 +01:00
|
|
|
```
|
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
You need to compile the fortran libs. This is done by the scons (Software Construction) program
|
2019-12-06 13:26:22 +01:00
|
|
|
|
|
|
|
```Bash
|
2020-03-31 18:29:41 +02:00
|
|
|
scons
|
2019-12-06 13:26:22 +01:00
|
|
|
```
|
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
Finally, install the package in develop mode:
|
2019-12-06 13:26:22 +01:00
|
|
|
|
|
|
|
```Bash
|
2020-03-31 18:29:41 +02:00
|
|
|
pip install -e .
|
2019-12-06 13:26:22 +01:00
|
|
|
```
|
|
|
|
|
2020-03-31 18:29:41 +02:00
|
|
|
That's all. All you need to do each time you want to work with msspec is activating the virtual environment
|