alphagenome.visualization.plot_transcripts.plot_transcripts#
- alphagenome.visualization.plot_transcripts.plot_transcripts(ax, transcripts, interval, zero_origin=False, label_name=None, transcript_style=TranscriptStyle(cds_height=0.7, utr_height=0.35, cds_color='#7f7f7f', utr5_color='#ff7f0e', utr3_color='#1f77b4', first_noncoding_exon_color='#2ca02c', label_color='#7f7f7f', xlim_pad=0.01), plot_labels_once=False, **kwargs)[source]#
Plot transcripts.
Loops over each transcript in
transcriptsand callsdraw_transcript.- Parameters:
ax (
Axes) – Matplotlib axis onto which to plot transcript annotations.transcripts (
Sequence[Transcript]) – Sequence of transcripts returned by a transcript.TranscriptExtractor.interval (
Interval) – Genomic interval at which to visualize the transcripts.zero_origin (
bool(default:False)) – If True, the beginning of the interval will start with 0.label_name (
Optional[str] (default:None)) – Which label in transcript.info to draw next to the transcript.transcript_style (
TranscriptStyle(default:TranscriptStyle(cds_height=0.7, utr_height=0.35, cds_color='#7f7f7f', utr5_color='#ff7f0e', utr3_color='#1f77b4', first_noncoding_exon_color='#2ca02c', label_color='#7f7f7f', xlim_pad=0.01))) – specification of transcript styling details.plot_labels_once (
bool(default:False)) – If True, labels will only be plotted once.**kwargs – kwargs passed to draw_transcript.
- Return type:
- Returns:
Matplotlib figure object.