mne_bids.search_folder_for_text#
- mne_bids.search_folder_for_text(entry, folder, extensions=('.json', '.tsv'), line_numbers=True, return_str=False)[source]#
Find any particular string entry in the text files of a folder.
Note
This is a search function like grep that is formatted nicely for BIDS datasets.
- Parameters:
- entry
str
The string to search for
- folderpath-like
The folder in which to search.
- extensions
list
|tuple
|str
The extensions to search through. Default is
json
andtsv
which are the BIDS sidecar file types.- line_numbers
bool
Whether to include line numbers.
- return_str
bool
If
True
, return the fields with “n/a” as a str instead of printing them.
- entry
- Returns:
Examples using mne_bids.search_folder_for_text
#
Convert iEEG data to BIDS format
Convert iEEG data to BIDS format