A comprehensive toolkit for neuroimaging data processing and analysis
Project description
A comprehensive Python toolkit for neuroimaging data processing and analysis, specifically designed for working with brain connectivity data, BIDS datasets, and various neuroimaging formats.
Free software: Apache Software License 2.0
Documentation: https://clabtoolkit.readthedocs.io
Source Code: https://github.com/connectomicslab/clabtoolkit
Python versions: 3.9+
Installation
Install from PyPI:
pip install clabtoolkit
For development installation:
git clone https://github.com/connectomicslab/clabtoolkit.git cd clabtoolkit pip install -e .[dev]
Features
- BIDS Tools (clabtoolkit.bidstools)
BIDS dataset validation and manipulation
Entity extraction from BIDS filenames
Conversion between BIDS formats
Metadata handling for neuroimaging datasets
- Connectivity Tools (clabtoolkit.connectivitytools)
Brain connectivity matrix analysis
Network-based statistics
Graph theory metrics computation
Connectivity visualization utilities
- FreeSurfer Tools (clabtoolkit.freesurfertools)
FreeSurfer output parsing and processing
Surface-based analysis utilities
Cortical thickness and morphometry tools
Integration with FreeSurfer workflows
- Image Processing Tools (clabtoolkit.imagetools)
Neuroimaging data I/O operations
Image registration and transformation
Quality control and preprocessing utilities
Multi-modal image processing
- Parcellation Tools (clabtoolkit.parcellationtools)
Brain parcellation scheme handling
Region-of-interest (ROI) extraction
Atlas-based analysis tools
Custom parcellation creation
- Surface Tools (clabtoolkit.surfacetools)
Surface mesh processing and analysis
Cortical surface manipulation
Surface-based statistics
Visualization of surface data
- DWI Tools (clabtoolkit.dwitools)
Diffusion-weighted imaging analysis
Tractography processing utilities
DTI and advanced diffusion modeling
White matter analysis tools
- Quality Control Tools (clabtoolkit.qcqatools)
Automated quality assessment
Image artifact detection
Quality metrics computation
Reporting and visualization
- Visualization Tools (clabtoolkit.visualizationtools)
Brain visualization utilities
Interactive plotting capabilities
Publication-ready figures
Multi-modal data visualization
Quick Start
import clabtoolkit.bidstools as bids
import clabtoolkit.connectivitytools as conn
# Load BIDS configuration
config = bids.load_bids_json()
# Extract entities from BIDS filename
entities = bids.str2entity("sub-01_ses-M00_T1w.nii.gz")
print(entities) # {'sub': '01', 'ses': 'M00', 'suffix': 'T1w', 'extension': 'nii.gz'}
# Process connectivity data
# conn_matrix = conn.load_connectivity_matrix("path/to/connectivity.mat")
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add some amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
Testing
Run tests with:
pytest
Run tests with coverage:
pytest --cov=clabtoolkit
Changelog
See HISTORY.rst for a detailed changelog.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clabtoolkit-0.4.0.tar.gz.
File metadata
- Download URL: clabtoolkit-0.4.0.tar.gz
- Upload date:
- Size: 350.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38149223400026235d34688d5e5a31c479a73d472fa806f3afb2334d7a0107f1
|
|
| MD5 |
0b49b7d76003c1e3a3f80ad5562b2d77
|
|
| BLAKE2b-256 |
3eb2d41bb233df52e31262deab9129e7757c07ded4793d7e127b4efd0a98c1a1
|
File details
Details for the file clabtoolkit-0.4.0-py3-none-any.whl.
File metadata
- Download URL: clabtoolkit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 341.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c09bbe32e213bf3bd313bef32611093dde04c9113ba27824477523069b318f1
|
|
| MD5 |
c3eb447ea00cf47928005680a0ca809e
|
|
| BLAKE2b-256 |
ecadc154c12abfeb96a5afc68ac5677b6c728698f11700d644e858240e624ffe
|