Command-line reference¶
Generated by
tools/generate_cli_docs.pyfrom the current entry points'--help.
For adult MRI, choose a profile in the Docker run guide. The launcher calls the appropriate container entry points. The general lmbc participant command creates a processing plan. See feature status and configuration for details.
python3 tools/run_multimodal.py¶
usage: run_multimodal.py [-h] [--fs-license-file FS_LICENSE_FILE]
[--demographics DEMOGRAPHICS]
[--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--session-label SESSION_LABEL [SESSION_LABEL ...]]
[--n-cpus N_CPUS] [--m0-scale M0_SCALE] [--dry-run]
[--overwrite]
[--require-profile {struct,struct-func,asl,struct-func-asl}]
[--adult-image ADULT_IMAGE] [--asl-image ASL_IMAGE]
{struct,struct-func,asl,struct-func-asl,group}
bids_or_participants output
Run adult structural, resting-state and raw ASL workflows in Docker.
positional arguments:
{struct,struct-func,asl,struct-func-asl,group}
bids_or_participants
output
optional arguments:
-h, --help show this help message and exit
--fs-license-file FS_LICENSE_FILE
--demographics DEMOGRAPHICS
--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
--session-label SESSION_LABEL [SESSION_LABEL ...]
--n-cpus N_CPUS
--m0-scale M0_SCALE
--dry-run
--overwrite
--require-profile {struct,struct-func,asl,struct-func-asl}
Require these current modalities for each selected group visit
--adult-image ADULT_IMAGE
--asl-image ASL_IMAGE
lmbc¶
usage: lmbc [-h] [--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--session-label SESSION_LABEL [SESSION_LABEL ...]]
[--task-id TASK_ID [TASK_ID ...]] [--config-file CONFIG_FILE]
[--work-dir WORK_DIR] [--nprocs NPROCS] [--omp-nthreads OMP_NTHREADS]
[--mem-mb MEM_MB] [--log-level {DEBUG,INFO,WARNING,ERROR}] [--dry-run]
[--resume] [--stop-on-first-crash] [--write-graph] [--reports-only]
[--bold-resolution BOLD_RESOLUTION] [--slice-timing {auto,on,off}]
[--slice-timing-order {auto,ascending,descending,odd,even,custom}]
[--slice-order-file SLICE_ORDER_FILE]
[--global-signal-regression | --no-global-signal-regression] [--version]
[--version-json]
bids_dir output_dir {participant}
Lifespan Multimodal Brain Charts Pipeline
positional arguments:
bids_dir BIDS dataset root (read-only)
output_dir LMBC derivatives output directory
{participant}
optional arguments:
-h, --help show this help message and exit
--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
--session-label SESSION_LABEL [SESSION_LABEL ...]
--task-id TASK_ID [TASK_ID ...]
--config-file CONFIG_FILE
Versioned TOML configuration
--work-dir WORK_DIR
--nprocs NPROCS
--omp-nthreads OMP_NTHREADS
--mem-mb MEM_MB
--log-level {DEBUG,INFO,WARNING,ERROR}
--dry-run
--resume
--stop-on-first-crash
--write-graph
--reports-only
--bold-resolution BOLD_RESOLUTION
--slice-timing {auto,on,off}
--slice-timing-order {auto,ascending,descending,odd,even,custom}
--slice-order-file SLICE_ORDER_FILE
--global-signal-regression, --no-global-signal-regression
Default is enabled; disabling makes outputs ineligible for the
normative model.
--version show program's version number and exit
--version-json
lmbc-qunex-prepare¶
usage: lmbc-qunex-prepare [-h] --participant-label PARTICIPANT_LABEL
[--session-label SESSION_LABEL]
[--demographics DEMOGRAPHICS]
[--bold-resolution BOLD_RESOLUTION]
[--slice-timing {auto,on,off}]
[--slice-timing-order {auto,ascending,descending,odd,even,custom}]
[--slice-order-file SLICE_ORDER_FILE] [--materialize]
bids_dir output_dir
Generate and optionally materialize QuNex 0.93.6 inputs from BIDS.
positional arguments:
bids_dir
output_dir
optional arguments:
-h, --help show this help message and exit
--participant-label PARTICIPANT_LABEL
--session-label SESSION_LABEL
--demographics DEMOGRAPHICS
CSV/TSV with SubID, SesID, Age, Sex, SiteID
--bold-resolution BOLD_RESOLUTION
--slice-timing {auto,on,off}
auto: single-band on, multiband off; on/off are explicit user
overrides.
--slice-timing-order {auto,ascending,descending,odd,even,custom}
--slice-order-file SLICE_ORDER_FILE
--materialize Run create_study/import_bids/create_session_info/setup_hcp/cre
ate_batch.
lmbc-qunex-run¶
usage: lmbc-qunex-run [-h]
[--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--session-label SESSION_LABEL [SESSION_LABEL ...]]
[--demographics DEMOGRAPHICS]
[--bold-resolution BOLD_RESOLUTION]
[--slice-timing {auto,on,off}]
[--slice-timing-order {auto,ascending,descending,odd,even,custom}]
[--slice-order-file SLICE_ORDER_FILE] [--website-csv]
[--overwrite] [--structural-only | --require-rest] [--hcp-only]
[--from-stage FROM_STAGE]
[--functional-recipe {legacy-gretna-v1,python-v1}]
[--global-signal-regression] [--no-global-signal-regression]
[--mesh-atlas-dir MESH_ATLAS_DIR]
[--individualized-atlas-dir INDIVIDUALIZED_ATLAS_DIR]
[--roi-atlas-dir ROI_ATLAS_DIR]
[--mind-atlas-dir MIND_ATLAS_DIR]
[--fsaverage-dir FSAVERAGE_DIR] [--dataset DATASET]
[--n-cpus N_CPUS] [--jobs JOBS] [--dry-run]
[--shard-count SHARD_COUNT] [--shard-index SHARD_INDEX]
bids_dir output_dir
Run modular LMBC preprocessing and phenotype extraction.
positional arguments:
bids_dir
output_dir
optional arguments:
-h, --help show this help message and exit
--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
--session-label SESSION_LABEL [SESSION_LABEL ...]
--demographics DEMOGRAPHICS
CSV/TSV with SubID, SesID, Age, Sex, SiteID
--bold-resolution BOLD_RESOLUTION
--slice-timing {auto,on,off}
auto: single-band on, multiband off; on/off are explicit user
overrides.
--slice-timing-order {auto,ascending,descending,odd,even,custom}
--slice-order-file SLICE_ORDER_FILE
--website-csv Require reviewed demographics and export public website CSVs
--overwrite Rebuild identical, failed or legacy results in a fresh
directory
--structural-only Process anatomy and structural phenotypes only
--require-rest Require a resting-state BOLD acquisition for each selected
scan
--hcp-only
--from-stage FROM_STAGE
auto or prepare. Changed or forced visits start at
preparation.
--functional-recipe {legacy-gretna-v1,python-v1}
--global-signal-regression
--no-global-signal-regression
--mesh-atlas-dir MESH_ATLAS_DIR
--individualized-atlas-dir INDIVIDUALIZED_ATLAS_DIR
--roi-atlas-dir ROI_ATLAS_DIR
--mind-atlas-dir MIND_ATLAS_DIR
--fsaverage-dir FSAVERAGE_DIR
--dataset DATASET Database identifier; defaults to dataset_description Name
--n-cpus N_CPUS Total CPU budget for this invocation
--jobs JOBS Concurrent participant/session workers
--dry-run Check cohort inputs and write a plan
--shard-count SHARD_COUNT
Number of SLURM array shards
--shard-index SHARD_INDEX
Zero-based SLURM array shard
lmbc run-asl¶
usage: lmbc run-asl [-h]
[--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--session-label SESSION_LABEL [SESSION_LABEL ...]]
[--demographics DEMOGRAPHICS] [--aslprep ASLPREP]
[--fs-license-file FS_LICENSE_FILE] [--m0-scale M0_SCALE]
[--resources RESOURCES] [--n-cpus N_CPUS] [--dry-run]
[--print-inputs] [--overwrite] [--derivatives DERIVATIVES]
bids_dir output_dir
Run the original raw-ASL recipe with ASLPrep 25.1.0 and export reviewed CBF.
positional arguments:
bids_dir
output_dir
optional arguments:
-h, --help show this help message and exit
--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
--session-label SESSION_LABEL [SESSION_LABEL ...]
--demographics DEMOGRAPHICS
--aslprep ASLPREP
--fs-license-file FS_LICENSE_FILE
--m0-scale M0_SCALE
--resources RESOURCES
--n-cpus N_CPUS
--dry-run Validate inputs and print the selected visit plans
--print-inputs Print the validated visit requests as JSON without creating
outputs
--overwrite Start a clean ASL visit attempt and preserve its previous
results
--derivatives DERIVATIVES
Reuse ASLPrep outputs with matching verified LMBC source and
workflow provenance
lmbc group¶
usage: lmbc scoring group [-h] [--contract CONTRACT]
[--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
[--session-label SESSION_LABEL [SESSION_LABEL ...]]
[--bids-dir BIDS_DIR] [--demographics DEMOGRAPHICS]
[--require-profile {struct,struct-func,asl,struct-func-asl}]
[--dry-run] [--overwrite]
input_dir output_dir
positional arguments:
input_dir
output_dir
optional arguments:
-h, --help show this help message and exit
--contract CONTRACT
--participant-label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
--session-label SESSION_LABEL [SESSION_LABEL ...]
--bids-dir BIDS_DIR
--demographics DEMOGRAPHICS
--require-profile {struct,struct-func,asl,struct-func-asl}
--dry-run
--overwrite
lmbc-qc¶
usage: lmbc-qc [-h] [--output-dir OUTPUT_DIR] [--bids-dir BIDS_DIR]
[--dataset DATASET] [--demographics DEMOGRAPHICS]
[--visual-review VISUAL_REVIEW]
dataset_outputs [dataset_outputs ...]
Generate one QC table across one or more LMBC datasets.
positional arguments:
dataset_outputs
optional arguments:
-h, --help show this help message and exit
--output-dir OUTPUT_DIR
Default: <single dataset output>/QC
--bids-dir BIDS_DIR Override input root for a single dataset
--dataset DATASET Dataset identifier for a single unregistered output
--demographics DEMOGRAPHICS
--visual-review VISUAL_REVIEW
Completed visual-review CSV
lmbc-infant¶
usage: lmbc-infant [-h] --batch BATCH
(--resource-repo RESOURCE_REPO | --resources RESOURCES)
[--stage {import,structure,functional,all,qc}] [--dry-run]
[--resume] [--overwrite] [--no-gsr] [--roi-threshold ROI_THRESHOLD]
[--bold-resolution BOLD_RESOLUTION]
input_dir output_dir
iBEAT native VTK to LMBC infant phenotypes
positional arguments:
input_dir
output_dir
optional arguments:
-h, --help show this help message and exit
--batch BATCH Tab-separated database batch TXT
--resource-repo RESOURCE_REPO
Source repository with HeLab_Code and TianHe_Code
--resources RESOURCES
Portable resource roles JSON
--stage {import,structure,functional,all,qc}
qc renders existing results without preprocessing
--dry-run Validate inputs/resources; write plan without external tools
--resume Compatibility alias for the default verified-input check
--overwrite Start a clean attempt even for identical inputs
--no-gsr
--roi-threshold ROI_THRESHOLD
--bold-resolution BOLD_RESOLUTION
lmbc-inventory¶
usage: lmbc-inventory [-h] [--output OUTPUT] [--require-qunex]
Export a machine-readable inventory of LMBC/QuNex neuroimaging software versions.
optional arguments:
-h, --help show this help message and exit
--output OUTPUT Write a JSON file; print to stdout by default.
--require-qunex Return a nonzero status if QuNex is unavailable or a version
command fails.