mriqc.utils package¶
Submodules¶
mriqc.utils.misc module¶
Helper functions
-
mriqc.utils.misc.
bids_scan_file_walker
(dataset='.', include_types=None, warn_no_files=False)[source]¶ Traverse a BIDS dataset and provide a generator interface to the imaging files contained within.
Author: @chrisfilo Parameters: - dataset (str) – path to the BIDS dataset folder.
- include_types (list(str)) – a list of the scan types (i.e. subfolder names) to include in the results. Can be any combination of “func”, “anat”, “fmap”, “dwi”.
- warn_no_files (bool) – issue a warning if no imaging files are found for a subject or a session.
Returns: a list containing, for each .nii or .nii.gz file found, the BIDS identifying tokens and their values. If a file doesn’t have an identifying token its key will be None.
Module contents¶
Module utils.misc contains utilities