sekupy.io.configuration module

sekupy.io.configuration.check_configuration(cfg)[source]
sekupy.io.configuration.conf_to_json(config_file)[source]
sekupy.io.configuration.read_configuration(filename, section)[source]

Read the data configuration file.

It gets alle the information for data loading. the configuration file must be composed in this way

[path] data_path=/media/robbis/DATA/fmri/carlo_ofp/ subjects=/media/robbis/DATA/fmri/carlo_ofp/subjects.csv experiment=ofp types=OFP,RESIDUALS,OFP_NORES TR=1.7

[OFP] sub_dir=analysis_SEP/DE_ASS_noHP/SINGLE_TRIAL_MAGS_voxelwise event_file=eventfile_beta_plus event_header=True img_pattern=residuals_sorted.nii.gz runs=1 mask_dir=/media/robbis/DATA/fmri/carlo_ofp/1_single_ROIs brain_mask=glm_atlas_mask_333.nii.gz

[roi_labels] lateral_ips=/media/robbis/DATA/fmri/carlo_ofp/1_single_ROIs

For bids layout keywords use bids_{keyword}.

Parameters:
  • filename (str) –

    The pathname of the configuration file.

    The configuration file must specify

  • section (str) – The subsection of the configuration file to be

Returns:

cfg – A dictionary with all the information to load data

Return type:

dictionary

sekupy.io.configuration.read_json_configuration(path, json_fname, experiment)[source]
sekupy.io.configuration.save_configuration(path, dictionary, filename='configuration.json')[source]