Skip to article frontmatterSkip to article content

Quick Start

Get started with bids2nf in 3 simple steps. This guide shows you how to quickly explore your BIDS dataset and generate JSON outputs to understand the data structure.

Step 1: Get bids2nf

Follow the installation instructions.

Step 2: Test with Your BIDS Dataset

Use the built-in test workflow to explore your BIDS data. Choose the appropriate profile for your system:

For Apple Silicon Macs:

nextflow run tests/integration/test_unified_bids2nf.nf --bids_dir /path/to/your/bids/dataset -profile arm64_test

For Intel/AMD systems:

nextflow run tests/integration/test_unified_bids2nf.nf --bids_dir /path/to/your/bids/dataset -profile amd64_test

Skip BIDS validation (faster):

nextflow run tests/integration/test_unified_bids2nf.nf --bids_dir /path/to/your/bids/dataset -profile arm64_test --bids_validation false

Use custom configuration:

nextflow run tests/integration/test_unified_bids2nf.nf --bids_dir /path/to/your/bids/dataset --bids2nf_config /path/to/your/config.yaml -profile arm64_test

This will:

Step 3: Examine the Results

The test generates JSON files for each subject/session/run combination, showing:

Example output (sub-01_ses-01_run-01_unified.json):

{
  "subject": "sub-01",
  "session": "ses-01", 
  "run": "run-01",
  "totalFiles": 6,
  "data": {
    "MTS": {
      "T1w": {
        "nii": "/path/to/sub-01_ses-01_run-01_T1w.nii.gz",
        "json": "/path/to/sub-01_ses-01_run-01_T1w.json"
      },
      "MTw": {
        "nii": "/path/to/sub-01_ses-01_run-01_MTw.nii.gz", 
        "json": "/path/to/sub-01_ses-01_run-01_MTw.json"
      },
      "PDw": {
        "nii": "/path/to/sub-01_ses-01_run-01_PDw.nii.gz",
        "json": "/path/to/sub-01_ses-01_run-01_PDw.json"
      }
    }
  }
}

Common BIDS Patterns

bids2nf automatically detects common neuroimaging patterns:

Available Profiles

Configuration Options

Next Steps

  1. Explore your results: Check the JSON files in tests/new_outputs/
  2. Build your pipeline: Use the workflow guide to create a full processing pipeline
  3. Customize configuration: See supported configurations for advanced options

Ready to build a complete pipeline? Check out the workflow documentation!