neurochat.nc_ui module¶
This module implements NeuroChaT_Ui, the main class for NeuroChaT GUI.
It contains other graphical and data objects and connects to the NeuroChaT class for setting configuration and analysis in NeuroChaT.
@author: Md Nurul Islam; islammn at tcd dot ie
-
class
neurochat.nc_ui.NeuroChaT_Ui[source]¶ Bases:
PyQt5.QtWidgets.QMainWindowThis class creates the main neurochat UI menu.
-
angle_calculation()[source]¶ Open an excel file and calculate angles between centroids.
The centroids are computed from the highest firing place field identified from the firing map.
See also
NeuroChaT.angle_calculation()
-
browse_all()[source]¶ In turn, browse spike, lfp and spatial.
See also
neurochat.nc_ui.browse_spike(),neurochat.nc_ui.browse_spatial(),neurochat.nc_ui.browse_lfp()
-
browse_lfp()[source]¶ Open a file dialog for selecting an lfp file.
This is disabled, depending on the mode and file format.
-
browse_spatial()[source]¶ Open a file dialog for selecting a spatial file.
This is disabled, depending on the mode and file format.
-
browse_spike()[source]¶ Open a file dialog for selecting a spike file.
Depending on the mode, also browses Excel or HDF5 files. Also populates a set of units and lfps available on selection.
-
cell_type_analysis(cell_type)[source]¶ Set the analysis checkboxes based on the type of cell selected.
-
cell_type_select()[source]¶ Called when there is a change in the cell type selection button groups.
Sets the cell type to the selected item.
-
closeEvent(event)[source]¶ Called when NeuroChaT window is about to close.
Opens a dialogue for saving the session information in NeuroChaT configuration file (.ncfg).
-
cluster_evaluate()[source]¶ Open a file dialog for selecting the Excel list.
This excel list contains specifications for cluster evaluation and evaluates the clusters using NeuroChaT().cluster_evaluate() method.
See also
NeuroChaT()
-
compare_units()[source]¶ Open a file dialog for selecting the Excel list.
This excel list contains specifications for comparing units and compares the units through NeuroChaT().cluster_similarity() method.
See also
NeuroChaT()
-
convert_to_nwb()[source]¶ Open a file dialog for selecting the Excel list.
This excel list contains specifications for NWB file for conversion. It then converts the files using the NeuroChaT().convert_to_nwb() method.
See also
NeuroChaT()
-
data_format_select(ind)[source]¶ Called when there is a change in the data format selection combo box.
Sets the data format to the selected item.
-
export_graphic_info()[source]¶ Called when ‘Export graphic file info’ menu is clicked.
Opens a file dialogue for the selection of an Excel file, and exports the graphic file info in the table to the file
-
export_results()[source]¶ Called when ‘Export Results’ button is clicked.
Opens a file dialogue for the selection of an Excel file, and exports the results in the table to the file
-
graphic_format_select()[source]¶ Called when there is a change in the graphic format selection.
Sets the output graphic format to the selected item.
-
lfp_chan_getitems()[source]¶ Return the list of LFP items.
This depends on the system, and returns files (Neuralynx) or their file extension (Axona) once the spike data is set using the ‘Browse’ button.
-
load_session()[source]¶ Prompt the user to select a .ncfg file and loads the config.
The settings and parameters from the file are passed to the GUI elements.
Set up the menu items in NeuroChaT GUI.
-
mode_select(ind)[source]¶ Called when there is a change in the analysis mode selection combo box.
Sets the data analysis mode to the selected item.
Reactivate the start button, displays the results in UI table.
-
save_log()[source]¶ Open a file dialog for the user to select an output file.
The current contents of the log-box are exported to this text file.
-
save_session()[source]¶ Prompt the user to select a .ncfg file and saves config.
The current settings and parameters from the GUI elements are saved to the file.
-
select_all()[source]¶ Called when ‘Select All’ box is checked or unchecked.
It checks or unchecks all other analyses.
-
set_lfp_chan(value)[source]¶ Called when the selection in the ‘LFP Ch No’ is changed.
Sets the lfp channel accordingly.
-
set_unit_no(value)[source]¶ Called when the selection in the ‘Unit No’ is changed.
Sets the unit number accordingly.
-
start()[source]¶ Called when start button is clicked.
Starts the entire backend operation in NeuroChaT
-
update_log(msg)[source]¶ Update the log-box with new message.
Parameters: msg – New log message or record Returns: None
-
-
class
neurochat.nc_ui.ParamBoxLayout[source]¶ Bases:
PyQt5.QtWidgets.QVBoxLayoutFacilitates adding new widget items to the analysis parameter window.
Subclass of QtWidgets.QVBoxLayout.
-
class
neurochat.nc_ui.UiParameters(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QDialogNeuroChaT user interface for setting analysis specific parameters.
-
change_stack_page()[source]¶ Change the stacked widgets of parameter settings.
This is updated according to the analysis selected from the list on left of the window.
-
-
class
neurochat.nc_ui.UiResults(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QDialogNeuroChaT user interface for displaying the analysis results.
Also facilitates the exporting of results.
-
set_data(pd_model)[source]¶ Set the PandasModel as the data model for the table-view.
Parameters: pd_model (PandasModel) – PandasModel as the table-data
-