Installation

Dependancies

External software dependancies

Macapype relies heavily on other neuroimaging Softwares, predominentyly:

for frioul users, here is what should be added at the end of your .bash_personal

in /home/nom.p (only accessible from a node, i.e once you have type frioul_interactive)

export PATH=$PATH:/hpc/soft/afni/afni/
export ANTSPATH=/hpc/soft/ANTS/antsbin/bin
export PATH=$ANTSPATH:$PATH
export PATH=$PATH:/hpc/soft/ANTS/ANTs/Scripts/
#FSLDIR=/hpc/soft/fsl/fsl_5.0.10/
FSLDIR=/hpc/soft/fsl/fsl_6.0.1/
#FSLDIR=/hpc/soft/fsl/fsl_5.0.11/
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH
FSLOUTPUTTYPE=NIFTI_GZ
export FSLOUTPUTTYPE

Python packages dependancies

Macapype relies on python packages. Here we provide installations using Anaconda

Creating environment with all packages

In case you have access to a conda environment, here is the procedure to initialize your own environnment (called “macapype”, but can be called the name you prefer):

$ conda init bash
$ conda create -n macapype_env python=3.7
$ conda activate macapype_env

Install macapype package

from github

Using git

$ git clone https://github.com/Macatools/macapype.git
$ cd macapype
$ python setup.py develop --user

Using pip

$ pip install git+https://github.com/Macatools/macapype

from pypi

Macapype is available on * pypi.org:

If ‘pip’ package is installed on your system, you can install the lastest stable version with:

$ pip install macapype

From conda

Macapype is also available on Anaconda cloud:

If ‘conda’ (Anaconda, or miniconda) is installed on your system, you can type:

$ conda install -c macatools macapype

!!!! The lastest version of macapype (0.2.1) is not available, due to the inclusion of packages that are not yet packaged in conda use “pip install macapype” or “git clone https://github.com/Macatools/macapype.git” till further notice

Testing the install

$ ipython
In [1]: import macapype