API documentationΒΆ
As the result of analysis will be produced (for each data file (.fif)):
html report for all metrics
csv file with the results of the analysis for some of metrics
machine readable json file with the results of the analysis for all metrics
In the html report:
all the plots produced by MEQ-QC are interactive, they can be scrolled through and enlarged.
a few plots from MNE (in ECG and EOG sections) are not interactive.
UML diagrams presenting the flow of the analysis for each module are available here: https://github.com/ANCPLabOldenburg/MEG-QC-code/tree/main/diagrams
Tutorial:
https://ancplaboldenburg.github.io/docker_workshop_template/
Modules:
- Pipeline Settings
- Default settings [DEFAULT]
- Filtering [Filtering]
- Epoching [Epoching]
- Standard deviation [STD]
- Power spectral density [PSD]
- Peak-to-peak amplitude manual [PTP_manual]
- Peak-to-peak amplitude auto (based on MNE annotatons) [PTP_auto]
- Heart beat artifacts [ECG]
- Eye movement artifacts [EOG]
- Head_movement artifacts [Head_movement]
- Muscle artifacts [Muscle]
- Internal Pipeline Settings
- QC_derivative, MEG_channel classes
- Calculation pipeline
- Initial processing
- Standard deviation
- Frequency spectrum
PSD_meg_qc()add_log_buttons()assign_psds_to_channels()cut_the_noise_from_psd()find_noisy_freq_bands_complex()find_noisy_freq_bands_simple()find_number_and_ampl_of_noise_freqs()get_ampl_of_brain_waves()get_ampl_of_noisy_freqs()get_bands_amplitude_per_ch()get_nfft_nperseg()make_dict_global_psd()make_dict_local_psd()make_simple_metric_psd()plot_one_psd()split_blended_freqs_at_the_lowest_point()
- Peak to peak amplitude manual
- Peak to peak amplitude auto: based on MNE annotations
- ECG and EOG
Avg_artifAvg_artif.nameAvg_artif.artif_dataAvg_artif.peak_locAvg_artif.peak_magnitudeAvg_artif.wave_shapeAvg_artif.artif_over_thresholdAvg_artif.main_peak_locAvg_artif.main_peak_magnitudeAvg_artif.artif_data_smoothedAvg_artif.peak_loc_smoothedAvg_artif.peak_magnitude_smoothedAvg_artif.wave_shape_smoothedAvg_artif.artif_over_threshold_smoothedAvg_artif.main_peak_loc_smoothedAvg_artif.main_peak_magnitude_smoothedAvg_artif.corr_coefAvg_artif.p_valueAvg_artif.amplitude_ratioAvg_artif.similarity_scoreAvg_artif.lobeAvg_artif.colorAvg_artif.__init__()Avg_artif.__repr__()Avg_artif.detect_artif_above_threshold()Avg_artif.detect_artif_above_threshold_smoothed()Avg_artif.flip_artif()Avg_artif.flip_artif_smoothed()Avg_artif.get_highest_peak()Avg_artif.get_highest_peak_smoothed()Avg_artif.get_peaks_wave()Avg_artif.get_peaks_wave_smoothed()Avg_artif.smooth_artif()
ECG_meg_qc()EOG_meg_qc()align_artif_data()align_mean_rwave()assign_lobe_to_artifacts()calculate_artifacts_on_channels()check_3_conditions()check_mean_wave()detect_channels_above_norm()detect_noisy_ecg()estimate_t0()find_affected_by_amplitude_ratio()find_affected_by_correlation()find_affected_by_similarity_score()find_affected_over_mean()find_epoch_peaks()find_mean_rwave_blink()find_t0_channels()find_t0_highest()find_t0_mean()flip_channels()get_ECG_data_choose_method()get_EOG_data()make_dict_global_ECG_EOG()make_simple_metric_ECG_EOG()minmax_amplitude()reconstruct_ecg_and_check()rms_amplitude()shift_mean_wave()split_correlated_artifacts_into_3_groups()
- High frequency (muscle) disturbancies
- Head movement artifacts
- Plots and reports pipeline
Deriv_to_plotDeriv_to_plot.pathDeriv_to_plot.metricDeriv_to_plot.deriv_entity_objDeriv_to_plot.raw_entity_nameDeriv_to_plot.subjectDeriv_to_plot.__repr__()Deriv_to_plot.print_detailed_entities()Deriv_to_plot.find_raw_entity_name()Deriv_to_plot.find_raw_entity_name()Deriv_to_plot.print_detailed_entities()
create_categories_for_selector()csv_to_html_report()extract_raw_entities_from_obj()get_ds_entities()make_plots_meg_qc()select_subcategory()selector()sort_tsvs_by_raw()
- Plotting functions
Plot_psd_csv()add_log_buttons()assign_epoched_std_ptp_to_channels()boxplot_all_time_csv()boxplot_epoched_xaxis_channels_csv()boxplot_epoched_xaxis_epochs_csv()boxplot_epochs()edit_legend_pie_SNR()figure_x_axis()get_meg_system()get_tit_and_unit()keep_unique_locs()make_3d_sensors_trace()make_head_annots_plot()make_head_pos_plot_mne()plot_3d_topomap_std_ptp_csv()plot_ECG_EOG_channel_csv()plot_affected_channels_csv()plot_artif_per_ch_3_groups()plot_ch_df_as_lines_by_lobe_csv()plot_correlation_csv()plot_ecg_eog_mne()plot_head_pos_csv()plot_mean_rwave_csv()plot_mean_rwave_shifted()plot_muscle_annotations_mne()plot_muscle_csv()plot_pie_chart_freq_csv()plot_sensors_3d_csv()plot_stim_csv()plot_stim_csv_colored_leveled()plot_stim_csv_simple()plot_topomap_std_ptp_csv()split_affected_into_3_groups_csv()switch_names_on_off()
- Report functions