Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not allow for ses-Session directories #17

Open
celstark opened this issue Apr 6, 2018 · 1 comment
Open

Does not allow for ses-Session directories #17

celstark opened this issue Apr 6, 2018 · 1 comment

Comments

@celstark
Copy link

celstark commented Apr 6, 2018

As-is, the run.py will look for T1 images with "ses-" in the filename, but the directory structure is still:
BIDS/sub-#/anat/sub-#_ses-# rather than
BIDS/sub-#/ses-#/sub-#_ses-#

@celstark
Copy link
Author

celstark commented Apr 6, 2018

FWIW, the fix is as simple as having line 19 in run.py change from:
glob(join(basedir,"sub-%s"%subject_label, "anat", "sub-%s_ses-*_T1w.nii.gz" % (subject_label)))
to
glob(join(basedir,"sub-%s"%subject_label, "ses-*", "anat", "sub-%s_ses-*_T1w.nii.gz" % (subject_label)))

celstark added a commit to celstark/mindboggle that referenced this issue Apr 6, 2018
Fix globbing to get ses- directories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant