Skip to main content

Command-line toolbox to perform various statistical analysis on neuroscience data.

Project description

Poetry Python PyPI codecov CI Docs

logo_with_text

NeuroStatX is a command-line toolbox to perform statistical analysis on neuroscience data. It has been developed mainly as part of my PhD project, which aims to understand the relationship between the brain, cognition, and behavior; hence, the focus on neuroscience data. As my project goes forward, new functionalities and scripts will be added. Contributions are welcome!

[!NOTE] NeuroStatX also offers a strong testing infrastructure to ensure robust and reproducible results when applicable. Unit tests are already implemented for most functions, and CLI scripts are tested to ensure proper execution.

Installation

Through PyPI.

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

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:

pip install neurostatx

From source (for developpers).

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

pip install pipx
pipx ensurepath
pipx install poetry

[!WARNING] Poetry is creating is own virtual environment by default. Therefore, be sure to deactivate all of your virtual environment before continuing on with the installation.

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

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

[!NOTE] The poetry install command will install all required dependencies as well as setting up a virtual environment. To access the library environment, use: poetry shell from the project root directory. This will activate the project's python environment in your current shell. To access your environment from other directories, use this command (from within the project directory), you might need to modify ~/.bashrc to your specific login shell (ex: MacOS sometimes uses zsh, so ~/.zshrc or ~/.zprofile):

ENVPATH=$(poetry env info --path)
echo "export NeuroStatXPATH=${ENVPATH}" >> ~/.bashrc

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

[!IMPORTANT]

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurostatx-0.1.1.tar.gz (88.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurostatx-0.1.1-py3-none-any.whl (120.2 kB view details)

Uploaded Python 3

File details

Details for the file neurostatx-0.1.1.tar.gz.

File metadata

  • Download URL: neurostatx-0.1.1.tar.gz
  • Upload date:
  • Size: 88.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/25.2.0

File hashes

Hashes for neurostatx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 841cbf5b53940f39be0c2bea3bb4a0f9a4c277bac01107f64019afd658c4b6d2
MD5 dbd0b97b6c14a053a3e1a2fb137f1544
BLAKE2b-256 c5f3888fd5b1b376d4f04483406f96fa123664066a2a1931caaff732fd2196ef

See more details on using hashes here.

File details

Details for the file neurostatx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: neurostatx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 120.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/25.2.0

File hashes

Hashes for neurostatx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd89c7ec8505cf5b4a9f682d2fc74ceb453654351cbaed9cf15b90d2a241a98e
MD5 b8a041a1186b270689dd16bd61ca23cc
BLAKE2b-256 e5cec34cba24350eaf658ff26b6bea694cce0ac0cb1a443304fe64bb38294115

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page