trackhub.GroupDefinition

digraph inheritance415fc95d1e { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "trackhub.groups.GroupDefinition" [URL="#trackhub.GroupDefinition",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; }
class trackhub.GroupDefinition(name, label=None, priority=1, default_is_closed=0)[source]

Bases: object

Represents a group of tracks in a trackhub.

Instances of this class are provided to an assembly.

Parameters:
  • name (str) – Name for the group (e.g., “map”).

  • label (str) – The label that will be displayed (e.g., “Mapping”)

  • priority (int) – Orders this track group with the other track groups

  • default_is_closed (0 | 1) – Determines if this track group is expanded or closed by default. Values to use are 0 or 1

Methods

__init__(name[, label, priority, ...])

Represents a group of tracks in a trackhub.

__init__(name, label=None, priority=1, default_is_closed=0)[source]

Represents a group of tracks in a trackhub.

Instances of this class are provided to an assembly.

Parameters:
  • name (str) – Name for the group (e.g., “map”).

  • label (str) – The label that will be displayed (e.g., “Mapping”)

  • priority (int) – Orders this track group with the other track groups

  • default_is_closed (0 | 1) – Determines if this track group is expanded or closed by default. Values to use are 0 or 1