exonviz.Exon

class exonviz.Exon(size: int, coding: Coding | None = None, variants: Sequence[Variant] | None = None, name: str = '', color: str = '#4C72B7')

An Exon to be drawn

Parameters:
  • size – Size of the Exon

  • coding – Optional Coding region of the Exon

  • variants – Optional list of Variants that fall within the Exon

  • name – Name of the Exon

  • color – Color of the Exon

__init__(size: int, coding: Coding | None = None, variants: Sequence[Variant] | None = None, name: str = '', color: str = '#4C72B7') None

Methods

__init__(size[, coding, variants, name, color])

draw([height, scale, x, y, variant_shape])

Draw the Exon, in SVG format

draw_size(scale)

Determine how big the Exon is when drawn

min_scale([height])

Determine the minimum scale this exon can be drawn at

remove_noncoding()

Update an exon to remove the non coding region

split(size)

Split an new exon of size off from self

tsv([sep])

Dump an exon as tsv

valid_splits([height, scale])

Determine which splits of this exon can be drawn