PyReliMRI: Python-based Reliability in MRI
Introduction
PyReliMRI provides multiple reliability metrics for task fMRI and resting state fMRI data, essential
for assessing the consistency and reproducibility of MRI-based research. The package is described and used in the Preprint
Authors
Citation
If you use PyReliMRI in your research, please cite it using the following DOI:
Demidenko, M., Mumford, J., & Poldrack, R. (2024). PyReliMRI: An Open-source Python tool for Estimates of Reliability
in MRI Data (2.2.3) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.16930184
Purpose
Reliability questions for task fMRI and resting state fMRI are increasing. As described in 2010, there are various ways that researchers calculate reliability. Few open-source packages exist to calculate multiple individual and group reliability metrics using one tool. PyReliMRI offers comprehensive tools for calculating reliability metrics in MRI data at both individual and group levels. It supports various MRI analysis scenarios including multi-run and multi-session studies.
Features
-
Group Level:
similarity.py: Calculates similarity coefficients between fMRI images.icc.py: Computes Intraclass Correlation Coefficients (ICC) across subjects.
-
Individual Level:
brain_icc.py: Computes voxel-wise (can parallelize w/n_jobs) and atlas-based ICC.conn_icc.py: Estimates ICC for precomputed correlation matrices.
-
Utility:
masked_timeseries.py: Extracts and processes timeseries data from ROI masks or coordinates.
Scripts Overview
| Script Name | Functions | Inputs | Purpose |
|---|---|---|---|
| brain_icc.py | voxelwise_icc, roi_icc | See detailed descriptions for required and optional inputs. | Calculates intraclass correlation (ICC) metrics for voxel-wise and ROI-based data, supporting various ICC types and outputs. |
| icc.py | sumsq_total, sumsq, sumsq_btwn, icc_confint, sumsq_icc | Panda long dataframe with subject, session, scores, and ICC type inputs required. | Computes sum of squares and ICC estimates with confidence intervals, useful for assessing reliability across measurements. |
| similarity.py | image_similarity, pairwise_similarity | Input paths for Nifti images and optional parameters for image similarity calculations. | Computes similarity coefficients between fMRI images, facilitating pairwise comparisons and similarity type selection. |
| conn_icc.py | triang_to_fullmat, edgewise_icc | List of paths to precomputed correlation matrices as required inputs. | Calculates ICC for edge-wise correlations in precomputed matrices, enhancing reliability assessment in connectivity studies. |
| masked_timeseries.py | extract_time_series, extract_postcue_trs_for_conditions | Detailed inputs required for various functions: extract_time_series, extract_postcue_trs_for_conditions, etc. | Extracts and processes timeseries data from BOLD images, supporting ROI-based analysis and event-locked responses for functional MRI studies. |
Conclusion
PyReliMRI simplifies the calculation of reliability metrics for MRI data, supporting both research and clinical applications. For detailed usage instructions, visit the documentation.
Metadata
Release files for PyReliMRI 2.2.3
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 |
|---|---|---|---|---|
| pyrelimri-2.2.3.tar.gz | 27.8 kB | Without provenance | Details for pyrelimri-2.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrelimri-2.2.3-py3-none-any.whl | Python 3 | none | any | Details for pyrelimri-2.2.3-py3-none-any.whl |
Total release size: 52.2 kB
Release files / pyrelimri-2.2.3.tar.gz
| Download URL | pyrelimri-2.2.3.tar.gz |
|---|---|
| Size | 27.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2e3fc22d17a264433445366c32d1f436292148c62e5b20306cbf2fdf662d9ee
|
|
BLAKE2b-256 checksum How to use checksums |
bf342d853db393387fb87d7c3d5bd9d4a89ffee43b11df391b67c16756368380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.16
|
Release files / pyrelimri-2.2.3-py3-none-any.whl
| Download URL | pyrelimri-2.2.3-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c5216ae4ef3d883ded63393900598e22699fe04ca26be975c873bd4f67e9abd
|
|
BLAKE2b-256 checksum How to use checksums |
e0e1cbf70dec71ee05a8dd6f4d9bb3ca326e21188988a24622b95ec18398a399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.16
|
Security for PyReliMRI 2.2.3
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.