Skip to content

Installation

Through PyPI.

It is highly recommended to install neurostatx into a python virtual environment. To do so, please follow these steps:

Terminal window
pipx install virtualenv
# Set up the virtualenv.
virtualenv --python 3.11 /path/to/your/destination/folder/
# Activate your newly created environment
source /path/to/your/destination/folder/bin/activate

Then, to install through PyPI, simply use pip:

Terminal window
pip install neurostatx

From source (for developpers).

This library uses poetry to manage dependencies. To install it, use pipx with the following command:

Terminal window
pip install pipx
pipx ensurepath
pipx install poetry

To install NeuroStatX and all of its dependencies, run this set of commands:

Terminal window
git clone https://github.com/gagnonanthony/NeuroStatX.git
cd NeuroStatX/
poetry install

Restart your terminal. You should now be able to activate the poetry environment by using: source $NeuroStatXPATH/bin/activate from anywhere.

Installing Graphviz

Graphviz is an external dependencies required to visualize semplot from the semopy package used within NeuroStatX. If you do not have Graphviz installed on your machine, please run the following if you are on Linux sudo apt get graphviz or brew install graphviz if you are on MacOS.

How to cite

For now, until a DOI is available, please cite the github URL: https://github.com/gagnonanthony/NeuroStatX.git