Metadata-Version: 2.1
Name: NeuroStatX
Version: 0.1.0
Summary: Command-line toolbox to perform various statistical analysis on neuroscience data.
Home-page: https://github.com/gagnonanthony/NeuroStatX.git
License: MIT
Author: Anthony Gagnon
Author-email: anthony.gagnon7@usherbrooke.ca
Requires-Python: >=3.10,<3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: Pillow (>=10.3.0,<11.0.0)
Requires-Dist: coloredlogs (>=15.0.1,<16.0.0)
Requires-Dist: cyclopts (>=2.2.0,<3.0.0)
Requires-Dist: detect-delimiter (>=0.1.1,<0.2.0)
Requires-Dist: factor-analyzer (>=0.5.0,<0.6.0)
Requires-Dist: gdown (==5.1.0)
Requires-Dist: graphviz (>=0.20.1,<0.21.0)
Requires-Dist: ipykernel (>=6.29.5,<7.0.0)
Requires-Dist: kneed (>=0.8.5,<0.9.0)
Requires-Dist: matplotlib (>=3.8.2,<4.0.0)
Requires-Dist: networkx (>=3.2.1,<4.0.0)
Requires-Dist: numpy (>=1.26.2,<2.0.0)
Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
Requires-Dist: p-tqdm (>=1.4.0,<2.0.0)
Requires-Dist: pandas (>=2.1.3,<3.0.0)
Requires-Dist: pip (>=24.1.2,<25.0.0)
Requires-Dist: scikit-fuzzy (>=0.4.2,<0.5.0)
Requires-Dist: scikit-learn (>=1.3.2,<2.0.0)
Requires-Dist: scipy (==1.11.4)
Requires-Dist: seaborn (>=0.13.0,<0.14.0)
Requires-Dist: semopy (>=2.3.10,<3.0.0)
Requires-Dist: setuptools (>=70.0.0,<71.0.0)
Requires-Dist: strenum (>=0.4.15,<0.5.0)
Project-URL: Documentation, https://gagnonanthony.github.io/NeuroStatX/
Project-URL: Repository, https://github.com/gagnonanthony/NeuroStatX.git
Description-Content-Type: text/markdown

[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
![Python](https://img.shields.io/badge/Python-3.10/3.11-blue)
[![codecov](https://codecov.io/gh/gagnonanthony/NeuroStatX/graph/badge.svg?token=7P0QUI6B8U)](https://codecov.io/gh/gagnonanthony/NeuroStatX)
[![CI](https://github.com/gagnonanthony/NeuroStatX/actions/workflows/build-dev.yml/badge.svg?branch=main)](https://github.com/gagnonanthony/NeuroStatX/actions/workflows/build-dev.yml)
[![Docs](https://github.com/gagnonanthony/NeuroStatX/actions/workflows/deploy.yml/badge.svg?branch=main)](https://github.com/gagnonanthony/NeuroStatX/actions/workflows/build-dev.yml)

![logo_with_text](https://github.com/gagnonanthony/NeuroStatX/assets/79757265/def2209e-e494-4427-9c3c-b8349c0c289b)


NeuroStatX is a command-line toolbox to perform statistical analysis on
neuroscience data. It had been developped mostly 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 test are already implemented for
> most functions, and CLI script are tested to ensure proper execution.

## Installation

### Through PiPy.

> [!WARNING]
> NeuroStatX will become available through PiPy once release 1.0.0 is out!
> Stay tuned.

### From source.

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.

