Created
May 3, 2022 16:43
-
-
Save akhanf/a30b8130942f4c7dccdafa6832fd1c29 to your computer and use it in GitHub Desktop.
simple snakebids with glob_wildcards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bold: sub-{subject}/ses-{session}/func/sub-{subject}_ses-{session}_task-{task}_bold.nii.gz | |
mask: derivatives/masks/sub-{subject}/ses-{session}/func/sub-{subject}_ses-{session}_task-{task}_desc-brain_mask.nii.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from snakebids.utils.snakemake_io import glob_wildcards | |
configfile: 'config.yml' | |
subject,session,task = glob_wildcards(config['bold']) | |
print(subject) | |
print(session) | |
print(task) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment