scimagR provides an end-to-end pipeline for longitudinal MRI and CT analysis in spinal cord injury (SCI) research. This vignette walks you through:
scimagR requires the following external tools:
pip install pydicomCheck that all tools are available:
Use sci_create_project() to scaffold a new
workflowr-based analysis project:
sci_create_project(
path = "~/projects/my-sci-study",
title = "Cervical SCI Longitudinal MRI Analysis",
author = "Your Name"
)This creates a complete directory structure with template files, configuration, and analysis Rmd notebooks.
Place your DICOM files in data/raw/dicom/ following this
structure:
data/raw/dicom/
├── SCI001/
│ ├── ses-01/
│ │ └── *.dcm
│ └── ses-02/
│ └── *.dcm
└── SCI002/
└── ses-01/
└── *.dcm
Fill in the CSV templates in data/metadata/:
imaging_registry.csv: One row per imaging sessionclinical_data.csv: One row per patientThe pipeline orchestrates all processing steps:
Check pipeline status at any time:
scimagR includes validated implementations of common SCI metrics: