mne_bids.find_matching_paths#
- mne_bids.find_matching_paths(root, subjects=None, sessions=None, tasks=None, acquisitions=None, runs=None, processings=None, recordings=None, spaces=None, splits=None, descriptions=None, suffixes=None, extensions=None, datatypes=None, check=False)[source]#
- Get list of all matching paths for all matching entity values. - Input can be str or list of str. None matches all found values. - Performs a recursive search, starting in - .root(if set), based on- BIDSPath.entitiesobject.- Parameters:
- rootpathlib.Path|str
- The root of the BIDS path. 
- subjectsstr| array_like ofstr|None
- The subject ID. Corresponds to “sub”. 
- sessionsstr| array_like ofstr|None
- The acquisition session. Corresponds to “ses”. 
- tasksstr| array_like ofstr|None
- The experimental task. Corresponds to “task”. 
- acquisitions: str | array-like of str | None
- The acquisition parameters. Corresponds to “acq”. 
- runsstr| array_like ofstr|None
- The run number. Corresponds to “run”. 
- processingsstr| array_like ofstr|None
- The processing label. Corresponds to “proc”. 
- recordingsstr| array_like ofstr|None
- The recording name. Corresponds to “rec”. 
- spacesstr| array_like ofstr|None
- The coordinate space for anatomical and sensor location files (e.g., - *_electrodes.tsv,- *_markers.mrk). Corresponds to “space”. Note that valid values for- spacemust come from a list of BIDS keywords as described in the BIDS specification.
- splitsstr| array_like ofstr|None
- The split of the continuous recording file for - .fifdata. Corresponds to “split”.
- descriptionsstr| array_like ofstr|None
- This corresponds to the BIDS entity - desc. It is used to provide additional information for derivative data, e.g., preprocessed data may be assigned- description='cleaned'.- Added in version 0.11. 
- suffixesstr| array_like ofstr|None
- The filename suffix. This is the entity after the last - _before the extension. E.g.,- 'channels'. The following filename suffix’s are accepted: ‘meg’, ‘markers’, ‘eeg’, ‘ieeg’, ‘T1w’, ‘participants’, ‘scans’, ‘electrodes’, ‘coordsystem’, ‘channels’, ‘events’, ‘headshape’, ‘digitizer’, ‘beh’, ‘physio’, ‘stim’
- extensionsstr| array_like ofstr|None
- The extension of the filename. E.g., - '.json'.
- datatypesstr| array_like ofstr|None
- The BIDS data type, e.g., - 'anat',- 'func',- 'eeg',- 'meg',- 'ieeg'.
- checkbool
- If - True, only returns paths that conform to BIDS. If- False(default), the- .checkattribute of the returned- mne_bids.BIDSPathobject will be set to- Truefor paths that do conform to BIDS, and to- Falsefor those that don’t.
 
- root
- Returns:
- bids_pathslistofmne_bids.BIDSPath
- The matching paths. 
 
- bids_paths
 
 
