Skip to content

Commit

Permalink
update bids entities for custom dwi for snakedwi
Browse files Browse the repository at this point in the history
- was different from prepdwi naming
  • Loading branch information
akhanf committed Aug 31, 2023
1 parent 0cea456 commit 20f91b9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion scattr/workflow/rules/mrtpipelines.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@ bids_dwi = partial(
root=dwi_dir,
datatype="dwi",
space="T1w",
desc="preproc",
desc="eddy",
res="orig",
**inputs.subj_wildcards,
)

bids_dwi_mask = partial(
bids,
root=dwi_dir,
datatype="dwi",
space="T1w",
desc="brain",
res="orig",
**inputs.subj_wildcards,
)


bids_response_out = partial(
bids,
root=mrtrix_dir,
Expand Down
2 changes: 1 addition & 1 deletion scattr/workflow/rules/mrtpipelines/preproc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rule nii2mif:
else re.sub(".nii.gz", ".bvec", inputs["dwi"].path)
),
mask=(
bids_dwi(suffix="mask.nii.gz") if dwi_dir else inputs["mask"].path
bids_dwi_mask(suffix="mask.nii.gz") if dwi_dir else inputs["mask"].path
),
output:
dwi=bids(
Expand Down

0 comments on commit 20f91b9

Please sign in to comment.