Welcome to SML fMRI Preprocessing Template Documentation

Documentation Status

This documentation covers the Stanford Memory Lab’s fMRI preprocessing template, a generalizable workflow for consistency within and across lab projects.

Overview

The SML fMRI Preprocessing Template transforms internal fMRI preprocessing scripts into a generalizable workflow that handles:

  • Automated transfer of scanner acquisitions from FlyWheel to Server

  • Raw to BIDS format conversion

  • DICOM to NIfTI conversion with dcm2niix

  • Dummy scan removal

  • Fieldmap-based susceptibility distortion correction setup

  • fMRIPrep anatomical and functional workflows

  • Interactive TUI launcher for pipeline steps

Quick Start

  1. Click β€œUse this template” to create your own repository

  2. Clone your new repository

  3. Copy settings.template.sh to settings.sh and customize

  4. Follow the configuration guide below

Features

βœ… Automated Transfer

Transfer scanner acquisitions from FlyWheel to Server

βœ… BIDS Conversion

Convert raw data to BIDS format

βœ… DICOM to NIfTI

Use dcm2niix for conversion

βœ… Dummy Scan Removal

Remove initial dummy scans

βœ… Distortion Correction

Fieldmap-based susceptibility distortion correction

βœ… fMRIPrep Integration

Run anatomical and functional workflows

βœ… Interactive TUI

User-friendly launcher for pipeline steps

βœ… Quality Control

Built-in validation and QC utilities

Getting Help

Indices and tables