suite2p.gui package¶
Submodules¶
suite2p.gui.buttons module¶
Bases:
PyQt5.QtWidgets.QPushButton
custom QPushButton class for quadrant plotting requires buttons to put into a QButtonGroup (parent.quadbtns)
allows only 1 button to pressed at a time
Bases:
PyQt5.QtWidgets.QPushButton
buttons to make trace box bigger or smaller
Bases:
PyQt5.QtWidgets.QPushButton
selection of top neurons
buttons for cell / not cell views at top
make quadrant buttons
buttons to draw a square on view
suite2p.gui.classgui module¶
suite2p.gui.drawroi module¶
-
class
suite2p.gui.drawroi.
ViewButton
(bid, Text, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QPushButton
-
suite2p.gui.drawroi.
masks_and_traces
(ops, stat_manual, stat_orig)[source]¶ main extraction function inputs: ops and stat creates cell and neuropil masks and extracts traces returns: F (ROIs x time), Fneu (ROIs x time), F_chan2, Fneu_chan2, ops, stat F_chan2 and Fneu_chan2 will be empty if no second channel
suite2p.gui.graphics module¶
-
suite2p.gui.graphics.
ROI_index
(ops, stat)[source]¶ matrix Ly x Lx where each pixel is an ROI index (-1 if no ROI present)
-
class
suite2p.gui.graphics.
TraceBox
(parent=None, border=None, lockAspect=False, enableMouse=True, invertY=False, enableMenu=True, name=None, invertX=False)[source]¶ Bases:
pyqtgraph.graphicsItems.PlotItem.PlotItem.PlotItem
suite2p.gui.gui2p module¶
-
class
suite2p.gui.gui2p.
MainWindow
(statfile=None)[source]¶ Bases:
PyQt5.QtWidgets.QMainWindow
suite2p.gui.io module¶
suite2p.gui.masks module¶
-
class
suite2p.gui.masks.
ColorButton
(bid, Text, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QPushButton
-
suite2p.gui.masks.
draw_masks
(parent)[source]¶ creates RGB masks using stat and puts them in M0 or M1 depending on whether or not iscell is True for a given ROI :param ops: mean_image, Vcorr :param stat: xpix,ypix :param iscell: vector with True if ROI is cell :param ops_plot: plotROI, view, color, randcols
- outputs:
M0: ROIs that are True in iscell M1: ROIs that are False in iscell
-
suite2p.gui.masks.
flip_roi
(parent)[source]¶ flips roi to other plot there are 3 levels of overlap so this may be buggy if more than 3 cells are on top of each other
-
suite2p.gui.masks.
init_masks
(parent)[source]¶ creates RGB masks using stat and puts them in M0 or M1 depending on whether or not iscell is True for a given ROI :param ops: mean_image, Vcorr :param stat: xpix,ypix,xext,yext :param iscell: vector with True if ROI is cell :param ops_plot: plotROI, view, color, randcols
- outputs:
M0: ROIs that are True in iscell M1: ROIs that are False in iscell
color buttons at row b0
suite2p.gui.merge module¶
suite2p.gui.reggui module¶
suite2p.gui.rungui module¶
-
class
suite2p.gui.rungui.
OpsButton
(bid, Text, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QPushButton
suite2p.gui.traces module¶
suite2p.gui.utils module¶
suite2p.gui.views module¶
-
class
suite2p.gui.views.
RangeSlider
(parent=None, *args)[source]¶ Bases:
PyQt5.QtWidgets.QSlider
A slider for ranges.
This class provides a dual-slider for ranges, where there is a defined maximum and minimum, as is a normal slider, but instead of having a single slider value, there are 2 slider values.
This class emits the same signals as the QSlider base class, with the exception of valueChanged
Found this slider here: https://www.mail-archive.com/pyqt@riverbankcomputing.com/msg22889.html and modified it
-
class
suite2p.gui.views.
ViewButton
(bid, Text, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QPushButton
custom QPushButton class for quadrant plotting requires buttons to put into a QButtonGroup (parent.viewbtns)
allows only 1 button to pressed at a time
-
suite2p.gui.views.
init_views
(parent)[source]¶ make views using parent.ops
- views in order:
“Q: ROIs”, “W: mean img”, “E: mean img (enhanced)”, “R: correlation map”, “T: max projection”, “Y: mean img chan2, corr”, “U: mean img chan2”,
assigns parent.views
view buttons
suite2p.gui.visualize module¶
-
class
suite2p.gui.visualize.
RangeSlider
(parent=None, *args)[source]¶ Bases:
PyQt5.QtWidgets.QSlider
A slider for ranges.
This class provides a dual-slider for ranges, where there is a defined maximum and minimum, as is a normal slider, but instead of having a single slider value, there are 2 slider values.
This class emits the same signals as the QSlider base class, with the exception of valueChanged
Found this slider here: https://www.mail-archive.com/pyqt@riverbankcomputing.com/msg22889.html and modified it