src.statistics.statistics_connectivity package

Submodules

src.statistics.statistics_connectivity.statistics_connectivity_controller module

Statistics Connectivity Controller

class src.statistics.statistics_connectivity.statistics_connectivity_controller.statisticsConnectivityController(number_of_channels, file_data, event_ids)[source]

Bases: statistics.statistics_connectivity.statistics_connectivity_listener.statisticsConnectivityListener

additional_parameters_clicked()[source]

Create a new window for specifying the exportation path of the computation of the envelope correlation.

additional_parameters_information(export_path)[source]

Retrieve the exportation path for the envelope correlation data computed. :param export_path: Path where the envelope correlation data will be stored. :type export_path: str

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(psi, fmin, fmax, connectivity_method, n_jobs, stats_first_variable, stats_second_variable)[source]

Close the window and send the information to the main controller. :param psi: Check if the computation of the Phase Slope Index must be done. The PSI give an indication to the directionality of the connectivity. :type psi: bool :param fmin: Minimum frequency from which the envelope correlation will be computed. :type fmin: float :param fmax: Maximum frequency from which the envelope correlation will be computed. :type fmax: float :param connectivity_method: Method used for computing the source space connectivity. :type connectivity_method: str :param n_jobs: Number of processes used to compute the source estimation :type n_jobs: int :param stats_first_variable: The first independent variable on which the statistics must be computed (an event id) :type stats_first_variable: str :param stats_second_variable: The second independent variable on which the statistics must be computed (an event id) :type stats_second_variable: str

plot_envelope_correlation(connectivity_data_one, connectivity_data_two, psi_data_one, psi_data_two, channel_names)[source]

Send the information to the view to plot the connectivity and the statistics computed on it. :param connectivity_data_one: The envelope correlation data of the first independent variable to plot. :type connectivity_data_one: list of, list of float :param connectivity_data_two: The envelope correlation data of the second independent variable to plot. :type connectivity_data_two: list of, list of float :param psi_data_one: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity of the first independent variable. :type psi_data_one: list of, list of float :param psi_data_two: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity of the second independent variable. :type psi_data_two: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

set_listener(listener)[source]

Set the main listener so that the controller is able to communicate with the main controller. :param listener: main listener :type listener: mainController

src.statistics.statistics_connectivity.statistics_connectivity_listener module

Statistics Connectivity Listener

class src.statistics.statistics_connectivity.statistics_connectivity_listener.statisticsConnectivityListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for computing the envelope correlation on the dataset. It retrieves the information from the view to send it to the controller.

additional_parameters_clicked()[source]
additional_parameters_information(export_path)[source]
cancel_button_clicked()[source]
confirm_button_clicked(psi, fmin, fmax, connectivity_method, n_jobs, stats_first_variable, stats_second_variable)[source]

src.statistics.statistics_connectivity.statistics_connectivity_view module

Statistics Connectivity View

class src.statistics.statistics_connectivity.statistics_connectivity_view.psiValuesWindow(psi, channel_names)[source]

Bases: PyQt5.QtWidgets.QWidget

class src.statistics.statistics_connectivity.statistics_connectivity_view.statisticsConnectivityView(number_of_channels, file_data, event_ids)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_envelope_correlation_trigger()[source]

Send the information to the controller that the computation is cancelled.

confirm_envelope_correlation_trigger()[source]

Retrieve the parameters and send the information to the controller.

create_first_independent_variable_check_boxes()[source]
create_second_independent_variable_check_boxes()[source]
data_exportation_trigger()[source]

Open a new window asking for the path for the exportation of the envelope correlation data

get_first_independent_variable_selected()[source]

Get the first independent variable selected by the user. :return: First independent variable selected :rtype: str

get_second_independent_variable_selected()[source]

Get the second independent variable selected by the user. :return: Second independent variable selected :rtype: str

static keep_picks_PSI_data(psi, channel_names, picks)[source]

Keep the PSI data from the channels that are in the picks. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str :param picks: The channels to keep :type picks: list of str :return: All the PSI data kept with the picks :rtype: list of, list of float

plot_envelope_correlation(connectivity_data_one, connectivity_data_two, psi_data_one, psi_data_two, channel_names)[source]

Plot the envelope correlation computed and the statistics linked to it. :param connectivity_data_one: The envelope correlation data of the first independent variable to plot. :type connectivity_data_one: list of, list of float :param connectivity_data_two: The envelope correlation data of the second independent variable to plot. :type connectivity_data_two: list of, list of float :param psi_data_one: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity of the first independent variable. :type psi_data_one: list of, list of float :param psi_data_two: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity of the second independent variable. :type psi_data_two: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

static plot_psi(psi, channel_names, title=None)[source]

Plot the Phase Slope Index computed. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_psi_topographies(psi, channel_names)[source]

Plot the PSI values as topographies on predefined points of the headset. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_psi_values(psi, channel_names)[source]

Plot the values of the Phase Slope Index computed. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_topographies_on_pick(ax, ch_idx)[source]

This block of code is executed once you click on one of the channel axes in the plot. To work with the viz internals, this function should only take two parameters, the axis and the channel or data index.

set_listener(listener)[source]

Set the listener to the controller. :param listener: Listener to the controller. :type listener: envelopeCorrelationController

slider_value_changed_trigger()[source]

Change the value of the slider displayed on the window when the actual slider is moved.

Module contents