sab_dataset.ChannelInfo(channel_names)¶Bases: object
Contains informations about channels
| Attributes: |
|
|---|
Methods
get_channel_name(chan_sel_pos) |
Get the channel name from the channel’s position |
get_channel_pos(chan_sel_name[, true_match]) |
Return the channel position from the channel’s name |
get_eeg_channels() |
Used to find the EEG channels |
get_electrode_channels_pos(elec_desc) |
Get the channels position of the selected electrode |
get_electrode_names() |
Used to get electrode names from the channel names |
get_channel_name(chan_sel_pos)¶Get the channel name from the channel’s position
| Parameters: |
|
|---|---|
| Returns: |
|
get_channel_pos(chan_sel_name, true_match=True)¶Return the channel position from the channel’s name
chan_sel_name parameter and chan_names attribute. If False
returns, every channel position containing chan_sel_nameget_eeg_channels()¶Used to find the EEG channels
Note
EEG channels’ name should start with the prefix ‘EEG’
Note
If no EEG channel can be found, all channels are considered to be EEG channels
| Returns: |
|
|---|
get_electrode_channels_pos(elec_desc)¶Get the channels position of the selected electrode
| Parameters: |
|
|---|---|
| Returns: |
|
get_electrode_names()¶Used to get electrode names from the channel names
| Returns: |
|
|---|
sab_dataset.SabDataset(matlab_dataset_dirpath, subject_id, dataset_type='rec', colors_dict=[], **kwargs)¶Bases: object
Class representing a SAB dataset - can represent the encoding phase or recognition phase. SabDataset instances are created from the Matlab EEGrec/EEGenc datasets (See documentation for more details)
| Attributes: |
|
|---|
Methods
create_features([chan_sel, electrode_sel, …]) |
Create a TimeFeatures instance from the current dataset |
downsample(decimate_order) |
Downsample the data along the time axis. |
plot_electrode_erps(elec_desc[, plot_ci, …]) |
Plot on the same figure the ERPs for each channel of the selected electrode |
plot_erp(channel_desc[, plot_ci, plot_hits, …]) |
Plot the evoked response averaged over trials |
plot_erp_subplot(data, ax, color_str, plot_ci) |
Internal rountine used by plot_erp method |
plot_itpc(channel_desc[, trial_pos, …]) |
Plot the ITPC, Inter-Trial Phase Coherence |
save([dir_path, filename]) |
Save the SabDataset instance to a pickle file using the pickle module. |
save_sig_to_file(chanpos[, trialpos, output_dir]) |
Save the signal to a file |
| plot_mean_spectrum |
create_features(chan_sel=[], electrode_sel=[], trial_sel=[])¶Create a TimeFeatures instance from the current dataset
| Parameters: |
|
|---|---|
| Returns: |
|
downsample(decimate_order)¶Downsample the data along the time axis.
| Parameters: |
|
|---|
plot_electrode_erps(elec_desc, plot_ci=0, plot_hits=1, plot_cr=0, plot_omissions=0, plot_fa=0)¶Plot on the same figure the ERPs for each channel of the selected electrode
| Parameters: |
|
|---|
plot_erp(channel_desc, plot_ci=1, plot_hits=1, plot_cr=1, plot_omissions=0, plot_fa=0, ax=[], colors_dict=[])¶Plot the evoked response averaged over trials
| Parameters: |
|
|---|---|
| Returns: |
|
plot_erp_subplot(data, ax, color_str, plot_ci)¶Internal rountine used by plot_erp method
plot_itpc(channel_desc, trial_pos=[], filt_cf=array([ 3., 3.54095194, 4.17944689, 4.93307353, 5.82259211, 6.87250628, 8.11173816, 9.57442501, 11.30085962, 13.33860028, 15.74378087, 18.58265717, 21.93343201, 25.88840958, 30.55653809, 36.06641099, 42.56980938, 50.24588311, 59.30608584, 70. ]), filt_bw=array([ 1.5, 1.71908979, 1.9701798, 2.25794399, 2.58773897, 2.96570377, 3.39887404, 3.89531311, 4.464262, 5.11631148, 5.86359922, 6.7200357, 7.70156317, 8.82645241, 10.11564282, 11.59313219, 13.28642346, 15.22703661, 17.45109544, 20. ]), f_tolerance=[], noise_tolerance=[], n_monte_carlo=20, ftype='elliptic', forder=4, do_plot=1, contour_plot=1, n_contours=20)¶Plot the ITPC, Inter-Trial Phase Coherence
| Parameters: |
|
|---|
See also
plot_mean_spectrum(channel_desc, fmin=2, fmax=90, plot_hits=1, plot_cr=1, plot_omissions=0, plot_fa=0)¶save(dir_path='.', filename=[])¶Save the SabDataset instance to a pickle file using the pickle module.
| Parameters: |
|
|---|
save_sig_to_file(chanpos, trialpos=[], output_dir='.')¶Save the signal to a file
| Parameters: |
|
|---|
sab_dataset.load_sab_dataset(filepath)¶Load a time SabDataset instance previously saved using the pickle module
| Parameters: |
|
|---|---|
| Returns: |
|