hv_anndata.GeneSelector

class hv_anndata.GeneSelector(**params)

A custom Panel widget for managing and selecting marker genes.

This component allows users to create, update, and manage groups of marker genes through a composite interactive widget.

  • Add new groups (keys) and associate them with marker genes (values).

  • Add marker genes to the list of available options.

  • Select and modify marker genes for a specific group using a MultiChoice widget.

  • View and edit the entire group-to-marker mapping in a JSON editor widget.

This component also allows users to create and update a list of marker genes:

  • Add marker genes to the list of available options.

  • Select the marker genes that constitue the list.

  • View and edit the list in a JSON editor widget.

Parameter Definitions

Parameters inherited from:

panel.viewable.Layoutable: align, aspect_ratio, css_classes, design, height, min_width, min_height, max_width, max_height, margin, styles, stylesheets, tags, width_policy, height_policy, sizing_mode, visible

panel.viewable.Viewable: loading

width = Integer(allow_None=True, allow_refs=True, bounds=(0, None), default=300, inclusive_bounds=(True, True), label='Width')

Width of this component.

label = String(allow_refs=True, default='', label='Label')

The label for the widget.

value = ClassSelector(allow_refs=True, class_=(<class 'dict'>, <class 'list'>), default={}, label='Value')

Dictionary mapping groups to lists of marker genes or list of marker genes

options = List(bounds=(0, None), default=[], label='Options')

List of available marker genes for the MultiChoice.

_input_key = Selector(default='', label=' input key', names={}, objects=[''])

Current value of the text input (group)

_input_value = String(default='', label=' input value')

Current value of the text input (marker gene)

_current_selection = List(bounds=(0, None), default=[], label=' current selection')

Current selection of marker genes for the active group

Attributes