datahipy.bids.bids_manager module
Utility functions to modify BIDS datasets created using BIDS_Manager
.
- datahipy.bids.bids_manager.clean_empty_events_tsv_files(layout)[source]
Remove empty events.tsv files.
Parameters
- layoutbids.BIDSLayout
BIDSLayout object representation of the BIDS dataset.
- datahipy.bids.bids_manager.correct_bids_ieeg_json_file(bids_ieeg_json)[source]
Correct BIDS iEEG json file.
Parameters
- bids_ieeg_jsonstr
Path to the BIDS iEEG json file.
Returns
- bids_ieeg_json_contentdict
Corrected content overwritten to the BIDS iEEG json file.
- datahipy.bids.bids_manager.correct_bids_ieeg_json_files(layout)[source]
Correct BIDS iEEG json files.
Parameters
- layoutbids.BIDSLayout
BIDSLayout object representation of the BIDS dataset.
- datahipy.bids.bids_manager.correct_run_index_filename(layout)[source]
Correct run index in BIDS filenames.
Parameters
- layoutbids.BIDSLayout
BIDSLayout object representation of the BIDS dataset.
- datahipy.bids.bids_manager.ensure_list_fields_in_dataset_description(bids_dir, fields)[source]
Ensure that some fields are list type in dataset_description.json.
Parameters
- bids_dirstr
Path to the BIDS dataset.
- fieldslist of str
List of fields to ensure are list type.