Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,763 changes: 1,117 additions & 646 deletions babs/babs.py

Large diffs are not rendered by default.

1,166 changes: 748 additions & 418 deletions babs/utils.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/source/walkthrough.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ Below is an example YAML file for toy BIDS App:

As you can see, there are several sections in this YAML file.

Here, in section ``singularity_run``,
both ``--dummy`` and ``-v`` are dummy arguments to this toy BIDS Apps:
Here, in section ``singularity_run``, ``$SUBJECT_SELECTION_FLAG`` designates the flag used for selecting participants in the BIDS app.
. Additionally, both ``--dummy`` and ``-v`` are dummy arguments to this toy BIDS Apps:
argument ``--dummy`` can take any value afterwards, whereas argument ``-v`` does not take values.
Here we use these arguments to show examples of:

Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-20-2-3_anatonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-w: "$BABS_TMPDIR" # this is a placeholder recognized by BABS.
--n_cpus: '1'
--stop-on-first-crash: ""
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-20-2-3_ingressed-fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# --input BIDS <path/to/raw_BIDS_dataset> # 1st input dataset \
# --input freesurfer <path/to/cloned_freesurfer_output_ria> # 2nd input dataset \
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
$INPUT_PATH: inputs/data/BIDS # the key `$INPUT_PATH` is a placeholder, which must be included first as there are two input datasets
-w: "$BABS_TMPDIR" # this is a placeholder. To be changed to `${PWD}/.git/tmp/wkdir`
--n_cpus: '1'
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-20-2-3_regular.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments when executing the BIDS App using `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-w: "$BABS_TMPDIR" # this is a placeholder recognized by BABS.
--n_cpus: '1'
--stop-on-first-crash: ""
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-23-1-3_anatonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-w: "$BABS_TMPDIR" # this is a placeholder recognized by BABS.
--n_cpus: "1"
--stop-on-first-crash: ""
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-23-1-3_ingressed-fs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# --input BIDS <path/to/raw_BIDS_dataset> # 1st input dataset \
# --input fmriprep_anat <path/to/cloned_fmriprep_anat_output_ria> # 2nd input dataset \
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
$INPUT_PATH: inputs/data/BIDS # the key `$INPUT_PATH` is a placeholder, which must be included first as there are two input datasets
-w: "$BABS_TMPDIR" # this is a placeholder recognized by BABS.
--n_cpus: '1'
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_fmriprep-23-1-3_regular.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-w: "$BABS_TMPDIR" # this is a placeholder recognized by BABS.
--n_cpus: '1'
--stop-on-first-crash: ""
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_qsiprep-0-18-1_regular.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Therefore, please change and tailor it for your case before use it!!!

singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-v: "-v"
-w: "$BABS_TMPDIR" # this is a placeholder. To be changed to `${PWD}/.git/tmp/wkdir`
--n_cpus: "2" # For SGE clusters: you can use "$NSLOTS" here if `number_of_cpus` is set
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_toybidsapp-0-0-7_rawBIDS-walkthrough.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
--no-zipped: ""
--dummy: "2"
-v: ""
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_toybidsapp-0-0-7_zipped.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
--zipped: "" # for zipped input dataset
--dummy: "2" # this is a dummy variable, accepting values
-v: "" # this is also a dummy variable, not accepting values
Expand Down
1 change: 1 addition & 0 deletions notebooks/eg_xcpd-0-4-0_nifti.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Arguments in `singularity run`:
singularity_run:
$SUBJECT_SELECTION_FLAG: "--participant-label"
-w: "$BABS_TMPDIR" # this is a placeholder recognized BABS.
--despike: ""
--lower-bpf: "0.01"
Expand Down
Loading