https://github.com/cbica/nichart_spare

https://github.com/cbica/nichart_spare

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 12 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: CBICA
  • License: other
  • Language: Python
  • Default Branch: main
  • Size: 386 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 1
  • Releases: 3
Created 12 months ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

NiChart_SPARE

Implementation of SPARE scores calculation from Brain ROI Volumes (NiChart_DLMUSE) and White-Matter-Lesion volumes (NiChart_DLWMLS) as main features.

Supported SPARE scores (as of June 2025):

  • SPARE-CL : Any classfication
  • SPARE-RG : Any regression <!-- - SPARE-BA: Brain Age
  • SPARE-AD: Alzheimer's
  • SPARE-HT: Hypertension
  • SPARE-HL: Hyperlipidemia
  • SPARE-T2B: Diabetes (Type 2)
  • SPARE-SM: Smoking
  • SPARE-OB: Obesity -->

Installation

From GitHub

bash git clone https://github.com/CBICA/NiChart_SPARE.git cd NiChart_SPARE pip install -e .

~~Using PyPi~~ (Currently unsupported, TBA)

bash pip install NiChart_SPARE

Example Usage

Training a classifier

bash NiChart_SPARE -a trainer \ -t CL \ -i training_input.csv \ -mt SVM \ -sk linear \ -ht True \ -tw True \ -cf 5 \ -mo output_model.joblib \ -kv MRID \ -tc clf_target_column_name \ -ic Study,SITE,Sex \ -cb False \ -v 1

Training a regressor

bash NiChart_SPARE -a trainer \ -t RG \ -i training_input.csv \ -mt SVM \ -sk linear \ -ht False \ -tw True \ -bc True \ -cf 5 \ -mo output_model.joblib \ -kv MRID \ -tc rg_target_column_name \ -ic Study,SITE,Sex \ -v 1

Inference

```bash NiChartSPARE -a inference \ -t RG \ -i testinput \ -m model.joblib \ -o test_output.csv \ -kv MRID

```

```bash NiChartSPARE -a inference \ -t CL \ -i testinput \ -m model.joblib \ -o test_output.csv \ -kv MRID

```

Documentation

Coming Soon (Wiki-page)

Supported SVM kernels ("-k" or "--kernel" argument): - linear_fast (prone to bias) - linear - rbf - poly

Publications

  • SPARE-BA

Habes, M. et al. Advanced brain aging: relationship with epidemiologic and genetic risk factors, and overlap with Alzheimer disease atrophy patterns. Transl Psychiatry 6, e775, doi:10.1038/tp.2016.39 (2016).

  • SPARE-AD

Davatzikos, C., Xu, F., An, Y., Fan, Y. & Resnick, S. M. Longitudinal progression of Alzheimer's-like patterns of atrophy in normal older adults: the SPARE-AD index. Brain 132, 2026-2035, doi:10.1093/brain/awp091 (2009).

  • diSPARE-AD

Hwang, G. et al. Disentangling Alzheimer's disease neurodegeneration from typical brain ageing using machine learning. Brain Commun 4, fcac117, doi:10.1093/braincomms/fcac117 (2022).

  • SPARE-CVMs (HT, HL, T2B, SM, OB)

Govindarajan, S.T., Mamourian, E., Erus, G. et al. Machine learning reveals distinct neuroanatomical signatures of cardiovascular and metabolic diseases in cognitively unimpaired individuals. Nat Commun 16, 2724, doi:10.1038/s41467-025-57867-7 (2025).

# Notes - data_prep.py : subsets data for training/cross-validation and also perform additional processes including standardscaling, adjustment of Age/Sex/ICV effects

  • pipelines/spare_(BIOMARKER).py : (Biomarker) specific training pipelines

  • main.py : entry point for CLI, handle input arguments and calling of specific spare training pipeline or inferencing code

Owner

  • Name: Center for Biomedical Image Computing & Analytics (CBICA)
  • Login: CBICA
  • Kind: organization
  • Email: software@cbica.upenn.edu
  • Location: Philadelphia, PA

CBICA focuses on the development and application of advanced computation techniques.

GitHub Events

Total
  • Create event: 3
  • Issues event: 1
  • Release event: 1
  • Member event: 1
  • Push event: 15
  • Pull request event: 1
Last Year
  • Create event: 3
  • Issues event: 1
  • Release event: 1
  • Member event: 1
  • Push event: 15
  • Pull request event: 1

Dependencies

requirements.txt pypi
  • joblib >=1.1.0
  • matplotlib *
  • numpy >=1.19.0
  • pandas >=1.3.0
  • scikit-learn >=1.0.0
  • scipy >=1.7.0
  • scipy *
  • seaborn *
setup.py pypi
  • matplotlib *
  • numpy >=1.19.0
  • pandas >=1.3.0
  • scikit-learn >=1.0.0
  • scipy >=1.7.0
  • seaborn *