Skip to content

Understanding the profiles

sf-pediatric pipeline schema

Profiles let you choose which parts of the pipeline to run. Think of them as building blocks, you can use just one or combine several to create a pipeline run that suits your research aims.

Every pipeline run needs:

  1. Configuration Profile - How to run: docker, apptainer, arm64, or slurm
  2. Processing Profile(s) - What to analyze: tracking, segmentation, bundling, connectomics

sf-pediatric is organized into profiles, enabling total control over which processing steps are applied to your data. Currently, four profiles are available, enabling raw processing of dMRI data, white matter bundle analysis, or connectomics analysis.

  1. This is the core profile behind sf-pediatric. By selecting it, DWI data will be preprocessed (denoised, corrected for distortion, normalized, resampled, …). In parallel, T1w will be preprocessed (if -profile segmentation is not selected), registered into diffusion space, and segmented to extract tissue masks/maps. Tissue segmentation method will be adapted based on the subject’s age. Preprocessed DWI data will be used to fit both the DTI and fODF models. As the final step, whole-brain tractography will be performed using both local tracking/particle filter tracking (PFT) and concatenated into a single tractogram.

    Use this when: You have raw diffusion MRI data.

    Requires: DWI data, T1w or T2w image, participant age in participants.tsv

  2. By selecting this profile, FreeSurfer recon-all, Recon-all-clinical, FastSurfer or M-CRIB-S/InfantFS will be used to process the T1w/T2w images and the Brainnetome Child Atlas (Li et al., 2022) or Desikan-Killiany (for infant (< 3 months)) will be registered using surface-based methods in the native subject space.

    Use this when: You need brain labels (required for connectomics).

    Requires: T1w image (or T2w for infants < 3 months), participant age in participants.tsv

  3. This profile enables automatic bundle extraction from the processed whole-brain tractogram. By selecting it, bundle recognition will be performed in each subject using either the closest age-matched WM atlas (neonates, 3 months, 6 months, 12 months, 24 months, or children). Extracted bundles will then be filtered, uniformized, colored (affect only visualization), and tractometry will be performed to extract WM microstructure measures for each bundle. To use your own custom WM atlas, please see the --atlas_directory parameter.

    Use this when: You want to analyze specific white matter bundles (e.g., corticospinal tract, arcuate fasciculus).

    Requires: Must run tracking profile first (needs whole-brain tractogram)

  4. By selecting this profile, labels will be registered in diffusion space and used to segment the tractogram into individual connections. The segmented tractogram will then be filtered, using COMMIT to remove false positive streamlines. Following filtering, connectivity matrices will be computed for a variety of metrics and outputted as numpy arrays usable for further statistical analysis.

    Use this when: You want to perform structural connectome analysis.

    Requires: Must run both tracking AND segmentation profiles first

Choose one of these to specify how the pipeline runs:

  1. Section titled “docker (Recommended for personal computers)”

    Uses Docker containers. Best for personal computers (Windows, Mac, Linux).

  2. Uses Apptainer/Singularity containers. Best for HPC clusters where Docker isn’t available.

  3. For Mac M1/M2/M3/M4 chips. Combine with docker: -profile docker,arm64,tracking

  4. Uses SLURM job scheduler on HPC clusters. Combine with apptainer: -profile apptainer,slurm,tracking. More details on how to launch the pipeline on HPC using SLURM can be found here.


GoalProfilesNotes
Basic tractography-profile docker,trackingStart here
Full connectomics-profile docker,tracking,segmentation,connectomicsRequires FreeSurfer license
Bundle analysis-profile docker,tracking,bundlingTract-specific measures
Everything-profile docker,tracking,segmentation,bundling,connectomicsAll analyses
On HPC cluster-profile apptainer,slurm,...Use apptainer instead of docker on a SLURM cluster

Next: See the usage guide for complete instructions on how to combine profiles and run the pipeline.