scanometrics.GUI package

Subpackages

Submodules

scanometrics.GUI.MainWindow module

class scanometrics.GUI.MainWindow.MainWindow

Bases: QMainWindow

add_layout_separators()

Add layout separators (lines) to the main layout for better visual organization.

closeEvent(event)

Intercepts the window close event to prompt the user if they attempt to close the window without generating a report.

Parameters: event (QCloseEvent): The close event triggered by the user.

This method will check if a report has been created (is_report_created flag). If not, it will display a message box asking for confirmation to close the window. If the user chooses ‘No’, the close event will be ignored. If the user chooses ‘Yes’, the window will be closed.

del_all_widgets()

Delete all widgets from both left and right layouts except brain3d.

evaluate_subject()

Evaluate the selected subject using the selected metric.

fill_layout(widgets_info)

Helper method to fill the specified layout with widgets.

Args:
widgets_info (list): List of tuples containing widget information:

(widget_name, widget, widget_style, signal_label, layout_position)

generate_report()

Generate a PDF report containing the selected plots and metrics.

This method generates plots for the specified metrics by default and adds them to the report.

get_value(signal_type, value)
handle_sgn(value, signal_type)

Handle signals emitted by the widgets and perform corresponding actions.

initUI()

Initialize the main user interface settings.

initialize_som_project()

Initialize the ScanOMetrics project with the selected sample folder and normative model. Here the pkl file just has to exist to extract the proc_pipeline_id. Appropriate versioning is taken care of in the call to self.som_project.load_normative_model(self.normative_model_string)

on_evaluation_finished(subj_covariate_values, normModel_matching_cols, subj_measured_metrics, output, pid)

Handle the event when the evaluation is finished.

reset_variables()

Reset the variables used to get the user entry to their default values.

set_eval_page()

Configure the layout and widgets for the evaluation page.

set_header()

Set up the header with buttons and other interactive elements.

set_home_page()

Configure the layout and widgets for the home page.

set_info_page()

Configure the layout and widgets for the information page.

set_title()

Set up the title label at the top of the application.

show_error(error_msg, traceback_msg)

Show error message in case of an exception during the evaluation.

show_missing_values()

Display a message box showing which values are missing and return the missing values.

Returns:

list: A list of missing values.

switch_page(page)

Switch to a different page.

Args:

page (str): The page to switch to.

scanometrics.GUI.MainWindow.main()

scanometrics.GUI.styles module