lw_pipeline.helper.mne.find_assoc_deriv_bidspath#
- lw_pipeline.helper.mne.find_assoc_deriv_bidspath(bids_path, description, suffix=None, extension=None, alt_description=None)[source]#
Get bids path for derivative file based on an associated bids path and description.
Use find_matching_paths based on subject, session, task, run and specify separately description, suffix and extension.
- Parameters:
bids_path (mne_bids.BIDSPath) – BIDSPath object with the path to the raw data file.
description (str) – Description of the derivative file.
suffix (str) – Suffix of the derivative file.
extension (str) – Extension of the derivative file.
alt_description (str) – If the first one is not found, allow to specify an alternative.
- Returns:
bids_path – BIDSPath object with the path to the derivative file.
- Return type:
mne_bids.BIDSPath