Skip to content

Commit

Permalink
fix bugs for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitj committed Apr 26, 2023
1 parent f76d252 commit 5a1a1d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 14 additions & 5 deletions scattr/workflow/rules/freesurfer.smk
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ rule thalamic_segmentation:
fs_license=fs_license,
output:
thal_seg=str(
Path(freesurfer_dir)
/ "sub-{subject}/mri/ThalamicNuclei.v12.T1.mgz"
),
Path(
bids(
root=freesurfer_dir,
**inputs.subj_wildcards
)
).parent / "mri" / "ThalamicNuclei.v12.T1.mgz"
)
threads: 4
resources:
mem_mb=16000,
Expand Down Expand Up @@ -99,8 +103,13 @@ rule mgz2nii:
if not config.get("skip_thal_seg")
else [],
aparcaseg=str(
Path(freesurfer_dir) / "sub-{subject}/mri/aparc+aseg.mgz"
),
Path(
bids(
root=freesurfer_dir,
**inputs.subj_wildcards
)
).parent / "mri" / "aparc+aseg.mgz"
)
params:
freesurfer_dir=freesurfer_dir,
fs_license=fs_license,
Expand Down
1 change: 0 additions & 1 deletion scattr/workflow/rules/mrtpipelines.smk
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ rule responsemean:
input:
subject_rf=expand(
bids_response_out(
subject="{subject}",
desc="{tissue}",
),
zip,
Expand Down

0 comments on commit 5a1a1d0

Please sign in to comment.