diagram module

This is the primary module responsible for generating svg visualizations

mavis.illustrate.diagram.draw_multi_transcript_overlay(DS, gene, vmarkers=None, window_buffer=0, plots=None)[source]
mavis.illustrate.diagram.draw_sv_summary_diagram(DS, ann, fusion_transcript=None, reference_genome=None, templates=None, ignore_absent_templates=True, show_template=True, user_friendly_labels=True, template_display_label_prefix='c')[source]

this is the main drawing function. It decides between layouts where each view-level is split into one or two diagrams (side-by-side) dependant on whether the event is interchromosomal, within a single transcript, etc.

Diagrams have four levels
  • template
  • gene
  • transcript
  • fusion transcript/translation
Parameters:
  • ann (Annotation) – the annotation object to be illustrated
  • fusion_transcript (FusionTranscript) – the fusion transcript built from this annotation
  • reference_genome (dict of str by str) – reference sequences
  • templates (list of Template) – list of templates, used in drawing the template-level view
  • ignore_absent_templates (bool) – if true then will not raise an error if the template information is not given but will not draw the template instead
  • show_template (bool) – if false the template-level view is not drawn
  • user_friendly_labels (bool) – if True, genes are labelled by their aliases (where possible) and domains are labeled by their names (where possible)
  • template_display_label_prefix (str) – the character to precede the template label