datahipy.bids.electrophy module
Utility functions to retrieve information about electrophysiology files (EEG/MEG/iEEG) from a BIDS dataset.
- datahipy.bids.electrophy.get_channels_info(channels_tsv_file)[source]
Extract the content from a BIDS _channels.tsv file in JSON format.
Parameters
- channels_tsv_filestr
Path to the BIDS _channels.tsv file.
Returns
- channels_infostr
JSON representation of the content of the BIDS _channels.tsv file.
- datahipy.bids.electrophy.get_ieeg_info(layout)[source]
Return iEEG data information to be integrated in the dictionary summarizing a BIDS dataset for indexing.
Parameters
- dataset_descdict
Input dictionary with the dataset content to be indexed.
- layoutBIDSLayout
BIDSLayout object for the dataset.
Returns
- ieeg_infodict
Dictionary storing iEEG data information to be integrated in the dataset content to be indexed.