Installation instructions for Linux
Requirements
Conda is a package management system and environment management system.
The easiest and fastest way to get the package up and running is to install miniconda and to use mamba, which is much faster than conda.
Type the following two lines to install conda from miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
then 'Enter'
space (several times),
'yes'
'ENTER' (default)
Answer 'yes' to (conda init)
Close and reopen your terminal.
To install mamba, run what follows
conda install -c conda-forge mamba
Setting up the conda environment
We recommend installing nm-bridge into a separate environment called neuromod, see conda's documentation for more details. To do so, use:
conda create -n neuromod
You can choose another name than neuromod
.
In the neuromod environment, we will need several dependencies, used in the demo script, which we install as follows
mamba install -c conda-forge r-igraph jupyter
(answer 'yes')
Installing nm-bridge
We install nm-bridge in the neuromod environment as follows:
mamba install -c neuromod -c conda-forge nm-bridge python=3.10
(answer 'yes')
To test it, run the two following commands in the terminal
python -c 'import nmbridge'
R -e 'library(nmbridge)'
Updating nm-bridge
In case of update of nm-bridge, run inside the neuromod environment
mamba update -c neuromod -c conda-forge nm-bridge