Charestlab / pyGLMdenoise

python implementation of GLMdenoise
6 stars 6 forks source link

bids: how to filter out 'variants' #43

Closed JasperVanDenBosch closed 5 years ago

JasperVanDenBosch commented 5 years ago
[
 '/home/adf/vandejjf/Projects/pyGLMdenoise/data/ds000105/derivatives/fmriprep/sub-4/func/sub-4_task-objectviewing_run-01_bold_space-MNI152NLin2009cAsym_preproc.nii.gz',
 '/home/adf/vandejjf/Projects/pyGLMdenoise/data/ds000105/derivatives/fmriprep/sub-4/func/sub-4_task-objectviewing_run-01_bold_space-MNI152NLin2009cAsym_variant-smoothAROMAnonaggr_preproc.nii.gz',
 '/home/adf/vandejjf/Projects/pyGLMdenoise/data/ds000105/derivatives/fmriprep/sub-4/func/sub-4_task-objectviewing_run-02_bold_space-MNI152NLin2009cAsym_preproc.nii.gz',
 '/home/adf/vandejjf/Projects/pyGLMdenoise/data/ds000105/derivatives/fmriprep/sub-4/func/sub-4_task-objectviewing_run-02_bold_space-MNI152NLin2009cAsym_variant-smoothAROMAnonaggr_preproc.nii.gz',
]
JasperVanDenBosch commented 5 years ago

https://github.com/bids-standard/pybids/blob/master/bids/layout/config/derivatives.json

JasperVanDenBosch commented 5 years ago

Opened an issue at pybids: https://github.com/bids-standard/pybids/issues/420

JasperVanDenBosch commented 5 years ago

Another solution is to add an entity: # self.layout.add_entity(Entity('variant', 'variant-([a-zA-Z0-9]+)'))