cibrrig.gui
Attributes
Classes
GUI to select paths for backup. Expands QWidget. |
|
Dialog box to select the opto_calibration.json file if it is not found |
|
Dialog box to select the wiring file |
|
Functions
|
Ripped from iblatlas because we don't want to use the |
|
Convert insertion coordinates to IBL coordinates |
|
Convert IBL coordinates to CCF coordinates |
|
|
|
|
|
|
|
Module Contents
- cibrrig.gui.COLORS = ['#ff0000', '#00ff00', '#0000ff', '#ffff00', '#ff00ff', '#00ffff', '#ff8000', '#ff0080',...[source]
- cibrrig.gui.INSERTION_TYPES = ['npx1.0', 'npx2.0', 'opto_200um', 'opto_400um', 'opto_600um'][source]
- cibrrig.gui.get_tip(x, y, z, d, phi, theta)[source]
Ripped from iblatlas because we don’t want to use the the atlas nor assume that the probe insertion point should be at the brain
- cibrrig.gui.insertion2IBL(df)[source]
Convert insertion coordinates to IBL coordinates dataframe must have the following columns: - Insertion ML (microns) - Insertion AP (microns) - Insertion DV (microns) - Reference (“occipital apex”, “occipital nadir”, “lambda”, “bregma”)
- Parameters:
df (pd.DataFrame) – DataFrame with insertion coordinates
- Returns:
DataFrame with IBL coordinates
- Return type:
pd.DataFrame
- cibrrig.gui.convert2ccf(df)[source]
Convert IBL coordinates to CCF coordinates
In IBL frame, bregma is at (0,0,0) and right is positive x, rostral is positive y, dorsal is positive z x,y,z -> ML, AP, DV
In CCF frame, bregma is at (5400, 5739, 332) (AP,ML,DV) and right is positive x, caudal is positive y, ventral is positive z
dataframe must have the following columns: - x - y - z - phi (azimuth/yaw) - theta (pitch/elevation) - Depth (microns)
- Parameters:
df (pd.DataFrame) – DataFrame with IBL coordinates
- Returns:
DataFrame with CCF coordinates
- Return type:
pd.DataFrame
- class cibrrig.gui.DirectorySelector[source]
Bases:
PyQt5.QtWidgets.QWidgetGUI to select paths for backup. Expands QWidget.
This class provides a graphical user interface (GUI) for selecting local and remote paths for backup, as well as options for removing optogenetic artifacts and running ephys quality control.
- Parameters:
QWidget (QWidget) – Base class QWidget.
- class cibrrig.gui.OptoFileFinder(title='')[source]
Bases:
PyQt5.QtWidgets.QDialogDialog box to select the opto_calibration.json file if it is not found
- class cibrrig.gui.WiringEditor(title='')[source]
Bases:
PyQt5.QtWidgets.QDialogDialog box to select the wiring file
- output_wiring
Dictionary of the selected wiring
- Type:
dict
- digital_entries
Dictionary of the digital mapping (channels: signals)
- Type:
dict
- analog_entries
Dictionary of the analog mapping (channels: signals)
- Type:
dict
- class cibrrig.gui.InsertionTableAppBase(n_rows=1, n_gates=20, name='', save_fn=None)[source]
Bases:
PyQt5.QtWidgets.QDialog
- class cibrrig.gui.NpxInsertionTableApp(n_rows=1, n_gates=10, name='', save_fn=None)[source]
Bases:
InsertionTableAppBase
- class cibrrig.gui.OptoInsertionTableApp(n_rows=1, n_gates=10, name='', save_fn=None)[source]
Bases:
InsertionTableAppBase