mazzalab / pyntacle

A high performance python package for network analysis based on non canonical metrics
http://pyntacle.css-mendel.it
9 stars 1 forks source link

Pyntacle logo

A Python package for network analysis based on non canonical metrics and HPC-Computing

Installing using Pypi

PyPI version

[optional] Create and activate a virtualenv

Linux and MacOS X

python -m venv pyntacle_env
source pyntacle_env/bin/activate

Windows

python -m venv pyntacle_env
.\pyntacle_env\Scripts\activate

Installation

pip install pyntacle

Installing using Anaconda or Miniconda Anaconda-Server Badge

Anaconda-Server Badge Anaconda-Server Badge

There are several advantages in using Anaconda to install not only Pyntacle, but also Python and other packages: it is cross platform (Linux, MacOS X, Windows), you do not require administrative rights to install it (it goes in the user home directory), it allows you to work in virtual environments, which can be used as safe sandbox-like sub-systems that can be created, used, exported or deleted at your will.

You can choose between the full Anaconda and its lite version, Miniconda. The difference between the two is that Anaconda comes with hundreds of packages and can be a bit heavier to install, while Miniconda allows you to create a minimal, self-contained Python installation, and then use the Conda command to install additional packages of your choice.

In any case, Conda is the package manager that the Anaconda and Miniconda distributions are built upon. It is both cross-platform and language agnostic (it can play a similar role to a pip and virtualenv combination), and you need to set it up by running either the Anaconda installer or the Miniconda installer, choosing the Python 3.7 version.

The next step is to create a new Conda environment (if you are familiar with virtual environments, this is analogous to a virtualenv).

Linux and MacOS X

Run the following commands from a terminal window:

conda create -n name_of_my_env python=3.7

This will create a minimal environment with only Python 3.7 installed in it. To put your self inside this environment run:

source activate name_of_my_env

And finally, install the latest version of Pyntacle:

conda install -y -c bfxcss -c conda-forge pyntacle

Windows

Open a windows prompt or (even better) an Anaconda prompt , and type:

conda create -y -n name_of_my_env python=3.7

Then, activate the newly created environment:

conda activate name_of_my_env

Finally, install the latest version of Pyntacle:

conda install -y -c bfxcss -c conda-forge pyntacle

CUDA support (experimental)

Independently of the OS in use, if you need CUDA support, you must also install the CUDA toolkit by downloading and installing the Toolkit from the NVIDIA website.

NOTE GPU-base processing is an experimental feature in the current version (1.3), and is not covered by the command-line interface. This is because of weird behaviors of Numba with some hardware configurations that we were not be able to describe and circumvent so far. Although currently accessible by APIs, the GPU feature will be stable in the release 2.0, when Pyntacle will have covered the possibility to manage huge matrices for which replacing fine-grained parallelism with GPU computing would make sense.

Release history

Changelog for current and past releases:

1.3.2:

Bug fixes:

1.3.1:

Bug fixes:

1.3:

Major updates:

Minor updates:

1.2:

Major updates:

Minor:

1.1:

New Graph Plotting tool: PyntacleInk

1.0:

Major update of Pyntacle, including:

0.2:

0.1.3:

0.1.2:

0.1.1:

License

This work is licensed under a License: GPL v3