ColabSegNapariWidget#

class ColabSegNapariWidget(viewer, colabsegdata_instance, display_pixel_size=None)#

A widget for napari viewer to manage and visualize data from ColabSegData instances.

Parameters:
viewernapari.Viewer

The napari viewer instance to which this widget will be added.

colabsegdata_instancecolabseg.new_gui_functions.ColabSegData, optional

An instance of ColabSegData containing the data to be visualized.

Attributes:
viewernapari.Viewer

The napari viewer instance.

pixel_sizefloat

Pixel size of the data, obtained from colabsegdata_instance.

dropdownmagicgui.widgets.ComboBox

Dropdown menu for selecting clusters to highlight.

_previous_selectionstr or None

The previously selected cluster name.

Attributes

ColabSegNapariWidget.NO_VALUE

ColabSegNapariWidget.annotation

Return type annotation for the parameter represented by the widget.

ColabSegNapariWidget.changed

ColabSegNapariWidget.enabled

Whether widget is enabled (editable).

ColabSegNapariWidget.height

Return the current height of the widget.

ColabSegNapariWidget.label

Return a label to use for this widget when present in Containers.

ColabSegNapariWidget.label_changed

ColabSegNapariWidget.labels

Whether widgets are presented with labels.

ColabSegNapariWidget.layout

Return the layout of the widget.

ColabSegNapariWidget.margins

Return margin between the content and edges of the container.

ColabSegNapariWidget.max_height

Get the maximum height of the widget.

ColabSegNapariWidget.max_width

Get the maximum width of the widget.

ColabSegNapariWidget.min_height

Get the minimum height of the widget.

ColabSegNapariWidget.min_width

Get the minimum width of the widget.

ColabSegNapariWidget.native

Return native backend widget.

ColabSegNapariWidget.native_parent_changed

ColabSegNapariWidget.options

Return options currently being used in this widget.

ColabSegNapariWidget.orientation

Orientation of the widget.

ColabSegNapariWidget.param_kind

Return inspect.Parameter.kind represented by this widget.

ColabSegNapariWidget.parent

Return the parent widget.

ColabSegNapariWidget.parent_changed

Signal emitted when the parent of the widget changes.

ColabSegNapariWidget.root_native_widget

Return the root native backend widget.

ColabSegNapariWidget.tooltip

Get the tooltip for this widget.

ColabSegNapariWidget.visible

Return whether widget is visible.

ColabSegNapariWidget.widget_type

Return type of widget.

ColabSegNapariWidget.width

Return the current width of the widget.

Methods

ColabSegNapariWidget.append(value)

S.append(value) -- append value to the end of the sequence

ColabSegNapariWidget.asdict()

Return state of widget as dict.

ColabSegNapariWidget.clear()

ColabSegNapariWidget.close()

Close widget.

ColabSegNapariWidget.count(value)

ColabSegNapariWidget.export_data()

Exports the point cloud data currently visualized in the napari viewer.

ColabSegNapariWidget.extend(values)

S.extend(iterable) -- extend sequence by appending elements from the iterable

ColabSegNapariWidget.from_callable(obj[, ...])

Create a Container widget from a callable object.

ColabSegNapariWidget.from_signature(sig, ...)

Create a Container widget from an inspect.Signature object.

ColabSegNapariWidget.hide()

Hide widget.

ColabSegNapariWidget.index(value[, start, stop])

Return index of a specific widget instance (or widget name).

ColabSegNapariWidget.insert(key, widget)

Insert widget at key.

ColabSegNapariWidget.load_data(data)

Loads and visualizes data from a given ColabSegData instance.

ColabSegNapariWidget.pop([index])

Raise IndexError if list is empty or index is out of range.

ColabSegNapariWidget.remove(value)

Remove a widget instance (may also be string name of widget).

ColabSegNapariWidget.render()

Return an RGBA (MxNx4) numpy array bitmap of the rendered widget.

ColabSegNapariWidget.reset_choices(*_)

Reset choices for all Categorical subWidgets to the default state.

ColabSegNapariWidget.reverse()

S.reverse() -- reverse IN PLACE

ColabSegNapariWidget.show([run])

Show widget.

ColabSegNapariWidget.shown()

Context manager to show the widget.

ColabSegNapariWidget.update([mapping])

Update the parameters in the widget from a mapping, iterable, or kwargs.