malariagen_data.ag3.Ag3.plot_transcript#
- Ag3.plot_transcript(transcript: str, sizing_mode: Literal['fixed', 'stretch_width', 'stretch_height', 'stretch_both', 'scale_width', 'scale_height', 'scale_both'] = 'stretch_width', width: int | None = None, height: int = 100, show: bool = True, x_range: Range | None = None, toolbar_location: Literal['above', 'below', 'left', 'right'] | None = 'above', title: str | bool = True) Model | None #
Plot a transcript, using bokeh.
Parameters#
- transcriptstr
Gene transcript identifier.
- sizing_mode{‘fixed’, ‘stretch_width’, ‘stretch_height’, ‘stretch_both’, ‘scale_width’, ‘scale_height’, ‘scale_both’}, optional, default: ‘stretch_width’
Bokeh plot sizing mode, see also https://docs.bokeh.org/en/latest/docs /user_guide/basic/layouts.html#sizing-modes.
- widthint or None, optional
Plot width in pixels (px).
- heightint, optional, default: 100
Plot height in pixels (px).
- showbool, optional, default: True
If true, show the plot. If False, do not show the plot, but return the figure.
- x_rangeRange or None, optional
X axis range (for linking to other tracks).
- toolbar_location{‘above’, ‘below’, ‘left’, ‘right’} or None, optional, default: ‘above’
Location of bokeh toolbar.
- titlestr or bool, optional, default: True
Plot title. If True, a title may be automatically generated.
Returns#
- Model or None
A bokeh figure (only returned if show=False).