plot

This contains the plotting and saving logic

source

GenomePlot

 GenomePlot (browsers:Union[ForwardRef('GenomeBrowser'),List[ForwardRef('G
             enomeBrowser')]], output_backend:str='webgl')

A GenomePlot object is created to handle all the rendering logic of GenomeBrowser objects. An empty figure is created upon initialization. Glyphs, sequence and search boxes are then added when calling GenomePlot._collect_elements.

Type Default Details
browsers Union a GenomeBrowser object or list of GenomeBrowser objects when a GenomeStack is rendered
output_backend str webgl can be “webgl” or “svg”. webgl is more efficient but svg is a vectorial format that can be conveniently modified using other software
g=GenomeBrowser(gff_path=gff_path, fasta_path=fasta_path, bounds=(0,500000))
plot = GenomePlot(g)
plot._get_browser_elements()
seqsearch = plot._get_sequence_search()
bk_show(column(seqsearch,column(plot.elements)))
g=GenomeBrowser(gff_path=gff_path, fasta_path=fasta_path, bounds=(0,500000))
plot = GenomePlot(g)
plot._collect_elements()
bk_show(column(plot.elements))