childmindresearch / bids2table

Efficiently index large-scale BIDS neuroimaging datasets and derivatives
https://childmindresearch.github.io/bids2table/
MIT License
13 stars 5 forks source link

Add filtering functionality to bids2table #6

Closed ReinderVosDeWael closed 1 year ago

ReinderVosDeWael commented 1 year ago

This PR adds filtering functionality to bids2table. It can be invoked with lists of values (that are considered an OR), or single values (equivalent to a list of a single value). See example usage below.

import bids2table

bids2table.bids2table(BIDS_DIR, filters={'datatype': ['func', 'anat'], 'suffix': 'T1w'})

Specifically, this PR adds the following:

clane9 commented 1 year ago

Superseded by #17.