Understanding the profiles

What are profiles?
Section titled “What are profiles?”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.
Types of profiles
Section titled “Types of profiles”Every pipeline run needs:
- Configuration Profile - How to run:
docker,apptainer,arm64, orslurm - Processing Profile(s) - What to analyze:
tracking,segmentation,bundling,connectomics
Processing Profiles
Section titled “Processing Profiles”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.
-
Section titled “tracking”trackingThis 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 segmentationis 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 -
Section titled “segmentation”segmentationBy 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 -
Section titled “bundling”bundlingThis 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_directoryparameter.Use this when: You want to analyze specific white matter bundles (e.g., corticospinal tract, arcuate fasciculus).
Requires: Must run
trackingprofile first (needs whole-brain tractogram) -
Section titled “connectomics”connectomicsBy 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
trackingANDsegmentationprofiles first
Configuration Profiles
Section titled “Configuration Profiles”Choose one of these to specify how the pipeline runs:
-
Section titled “docker (Recommended for personal computers)”docker(Recommended for personal computers)Uses Docker containers. Best for personal computers (Windows, Mac, Linux).
-
Section titled “apptainer (Recommended for HPC clusters)”apptainer(Recommended for HPC clusters)Uses Apptainer/Singularity containers. Best for HPC clusters where Docker isn’t available.
-
Section titled “arm64 (Experimental)”arm64(Experimental)For Mac M1/M2/M3/M4 chips. Combine with docker:
-profile docker,arm64,tracking -
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.
Common Combinations
Section titled “Common Combinations”| Goal | Profiles | Notes |
|---|---|---|
| Basic tractography | -profile docker,tracking | Start here |
| Full connectomics | -profile docker,tracking,segmentation,connectomics | Requires FreeSurfer license |
| Bundle analysis | -profile docker,tracking,bundling | Tract-specific measures |
| Everything | -profile docker,tracking,segmentation,bundling,connectomics | All 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.