=GenomeBrowser(gff_path=gff_path, fasta_path=fasta_path, bounds=(0,500000))
g= GenomePlot(g)
plot
plot._get_browser_elements()= plot._get_sequence_search()
seqsearch bk_show(column(seqsearch,column(plot.elements)))
plot
This contains the plotting and saving logic
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 |
=GenomeBrowser(gff_path=gff_path, fasta_path=fasta_path, bounds=(0,500000))
g= GenomePlot(g)
plot
plot._collect_elements() bk_show(column(plot.elements))