Skip to content

Commit

Permalink
image must be passed to autotop
Browse files Browse the repository at this point in the history
even when running on a manual segmentation
  • Loading branch information
jordandekraker authored Feb 19, 2021
1 parent 775f084 commit a2a4ce0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hippunfold/workflow/rules/autotop.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ def get_autotop_cmd (wildcards, input, output):
def get_autotop_input (wildcards):
if wildcards.modality == 'T2w':
nii = bids(root='work',datatype='anat',**config['subj_wildcards'],suffix='T2w.nii.gz',desc='cropped',space='corobl',hemi='{hemi}'),
if wildcards.modality == 'segT2w':
nii = bids(root='work',datatype='anat',**config['subj_wildcards'],suffix='T2w.nii.gz',desc='cropped',space='corobl',hemi='{hemi}'),
elif wildcards.modality == 'T1w':
nii = bids(root='work',datatype='anat',**config['subj_wildcards'],suffix='T1w.nii.gz',desc='cropped',space='corobl',hemi='{hemi}'),
elif wildcards.modality == 'segT1w':
nii = bids(root='work',datatype='anat',**config['subj_wildcards'],suffix='T1w.nii.gz',desc='cropped',space='corobl',hemi='{hemi}'),
elif wildcards.modality == 'b500':
nii = bids(root='work/preproc_dwi',suffix='b500.nii.gz',desc='cropped',datatype='dwi',**config['subj_wildcards'],space='corobl',hemi='{hemi}'),
elif wildcards.modality == 'b1000':
Expand Down

1 comment on commit a2a4ce0

@jordandekraker
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoTop requires an input image even when running only on a segmentation. This doesn't seem to be passing any input images to it, and I'm not too sure how else to go about passing one. I could modify AutoTop code to accommodate no input image (since its not actually used), but that would require a new MCR compile so I thought it would be easier to just pass a corobl T1w or T2w image here.

Please sign in to comment.