Neuro-iX Tools
Common Tools for the Neuro-iX Lab
Getting Started
Installation
You will need an environment with at least Python 3.11, then run:
pip install neuro-ix-tools
Alternatively, you can clone the repository and use:
python cli.py
instead of neuro-ix.
Setup
If you are using the package, simply run:
neuro-ix init
This provides sensible defaults for Narval. The configuration file is stored in your .config folder.
If you are using the repository directly, we recommend using a local .env file. A template is available at .example.env.
Usage
Inside this environment, you have access to the neuro-ix command, which currently exposes one main tool.
FreeSurfer recon-all on SLURM Cluster
We provide a pipeline that simplifies the usage of FreeSurfer on the Narval SLURM cluster. The main command is:
neuro-ix freesurfer recon-all
This allows users to process all subjects in either a BIDS or CAPS (Clinica) dataset with FreeSurfer, using one SLURM job per subject.
Arguments:
--bids-dataset: Path to the root of a BIDS-compliant dataset--clinica-dataset: Path to the root of a Clinica-compliant dataset (CAPS)--cortical-stats: Flag to store only FreeSurfer's stats files--start-from: Used when there are more than 1000 subjects due to Narval’s job limit. Allows the user to resume processing from a specific subject index.
Example:
neuro-ix freesurfer recon-all --bids-dataset /path/to/dataset
If your dataset includes more than 1000 subjects (e.g., 1500), once the first batch is done, run:
neuro-ix freesurfer recon-all --bids-dataset /path/to/dataset --start-from 1000
Library
As a library, the neuro_ix package exposes:
- Classes to interact with and query BIDS and CAPS datasets for T1-weighted MRIs
- Extendable command classes
Contributing
Setup
Once the repository is cloned, install the development dependencies with:
pip install -r dev_requirements.txt
Tests
Test Tools
We use:
pytestfor unit testspytest-covfor coverage reports
Run tests via:
pytest --cov
rufffor linting and formatting (automatically applied viapre-commit)- Additional tools for code quality:
ssort,pydocstyle,mypy, andpylint
Test Data
All test data are extracted from MR-ART:
Nárai, Á., Hermann, P., Auer, T. et al. Movement-related artefacts (MR-ART) dataset of matched motion-corrupted and clean structural MRI brain scans. Sci Data 9, 630 (2022). https://doi.org/10.1038/s41597-022-01694-8
Deployment
Build Package using :
python -m build
And deploy to PyPI with :
twine upload sit/*
Metadata
Release files for neuro-ix-tools 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| neuro_ix_tools-0.0.8.tar.gz | 11.8 kB | Without provenance | Details for neuro_ix_tools-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neuro_ix_tools-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for neuro_ix_tools-0.0.8-py3-none-any.whl |
Total release size: 23.0 kB
Release files / neuro_ix_tools-0.0.8.tar.gz
| Download URL | neuro_ix_tools-0.0.8.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bfa8a0268d3eda2922f7392410326dcc91218ed0e31015a36b015921e77dedd
|
|
BLAKE2b-256 checksum How to use checksums |
4917573a691112e54f9f167658fd93a593c4e367a36b311f8918ecbe54c8da2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / neuro_ix_tools-0.0.8-py3-none-any.whl
| Download URL | neuro_ix_tools-0.0.8-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c33e0e5b4049d5c712ee1475de9cd88c76f25f51e18e79855daa5850d00cc617
|
|
BLAKE2b-256 checksum How to use checksums |
2d2f1ef49df9886fccc20253f57f2fb61e45b0ab64ac2b0fcaa5b39fb6a5a22c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for neuro-ix-tools 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.