Skip to content

Install GRAFIMO via source code

ManuelTgn edited this page Nov 30, 2020 · 3 revisions

Once all the requirements listed in Required softwares and dependencies are satisfied, the user can build GRAFIMO from source code.

To build GRAFIMO from source the user should ensure to have git installed (https://github.com/git-guides/install-git), in order to clone GRAFIMO github repository.

First, let's clone GRAFIMO github repository and access it:

git clone https://github.com/InfOmics/GRAFIMO.git 
cd GRAFIMO

Now we are ready to build GRAFIMO from source:

python3 setup.py install --user

For a quick installation test type:

grafimo -h

If the help is correctly shown, then GRAFIMO has been successfully installed.

To test that all GRAFIMO functionalities work properly the user will need pytest (https://docs.pytest.org/en/stable/). To install it:

pip3 install -U pytest

Once pytest has been obtained, enter the tests directory and launch pytest:

cd tests 
pytest

If no error is raised, then all works properly.