Skip to article frontmatterSkip to article content

About

bids2nf is a lightweight utility that parses BIDS (Brain Imaging Data Structure) datasets and emits structured Nextflow channels. These channels provide a standardized interface for building scalable, modular, and reproducible neuroimaging workflows with Nextflow.

📺 Tune In

Point to your BIDS directory and get clean, organized dataflow channels instantly. Focus on stitching together your workflow, not wrestling with regex patterns and file pairings.

⚡ Zero Bloat, All Flow

Ultra-lightweight with shell-based parsing and minimal dependencies. Built for speed, portability, and easy integration into any neuroimaging task.

🔧 Flexible by Design

Strict BIDS? Custom hacks? Either way, bids2nf adapts. Configure channels to match your data, your logic, your workflow.

🧠 Nextflow: A Declarative Powerhouse

Think single-subject analysis. Nextflow scales it automatically across subjects, sessions, and runs (and whatever else you need). No loops, no batch scripts, no infrastructure headaches. Your analysis code stays clean while Nextflow handles parallelization, container mediation, and compute resource maping.

This package is part of the nf-neuro initiative, a community effort to develop reproducible and scalable neuroimaging workflows.

References
  1. Karakuzu, A., Blostein, N., Caron, A. V., Boré, A., Rheault, F., Descoteaux, M., & Stikov, N. (2025). Rethinking MRI as a measurement device through modular and portable pipelines. Magnetic Resonance Materials in Physics, Biology and Medicine. 10.1007/s10334-025-01245-3