Skip to content

Commit

Permalink
fix shells and lmax argurments
Browse files Browse the repository at this point in the history
- adds necessary changes to pass space-separated command line arguments
(snakemake) as comma-separated to mrtrix
  • Loading branch information
kaitj committed Jan 26, 2023
1 parent 6152704 commit 3a71203
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dbsc/config/snakebids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ parse_args:

--shells:
help: '(Mrtrix3) specify one or more b-values to use during processing, as
a comma-separated list of the desired approximate b-values (b-values
a space-separated list of the desired approximate b-values (b-values
are clustered to allow for small deviations). Note that some
commands are incompatible with multiple b-values, and will report an
error if more than one b-value is provided.
Expand All @@ -128,7 +128,7 @@ parse_args:
--lmax:
help: '(Mrtrix3) the maximum spherical harmonic order for the output
FOD(s). For algorithms with multiple outputs, this should be
provided as a comma-sperated list of integers, one for each output
provided as a space-sperated list of integers, one for each output
image; for single-output algorithms, only a single integer
should be provided. If omitted, commands will use the lmax of the
corresponding response function (i.e. based on its number of
Expand Down
6 changes: 3 additions & 3 deletions dbsc/workflow/rules/mrtpipelines.smk
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ rule dwi2response:
dwi=rules.nii2mif.output.dwi,
mask=rules.nii2mif.output.mask,
params:
shells=f"-shells {shells}" if shells else "",
lmax=f"-lmax {lmax}" if lmax else "",
shells=f"-shells {','.join(shells)}" if shells else "",
lmax=f"-lmax {','.join(lmax)}" if lmax else "",
output:
wm_rf=bids_response_out(
desc="wm",
Expand Down Expand Up @@ -222,7 +222,7 @@ rule dwi2fod:
)
),
params:
shells=f"-shells {shells}" if shells else "",
shells=f"-shells {','.join(shells)}" if shells else "",
output:
wm_fod=bids_response_out(
model="csd",
Expand Down

0 comments on commit 3a71203

Please sign in to comment.