GC.transcript()
Draw the data as transcripts: exons, introns and UTRs.
The first call makes the chart again with the transcripts as clusters, and adds an intron between each pair of exons to the data. Settings of the whole chart made before it (title, legend, theme, grid margins) are kept; settings per cluster must come after it.
Usage
python
chart.transcript(
transcript,
type,
strand,
group,
selection,
show,
color_scheme,
custom_colors,
style_exons,
style_introns,
style_utrs,
item_style_exons,
item_style_introns,
item_style_utrs,
group_style_exons,
group_style_introns,
group_style_utrs,
style_by,
label_options,
**options,
)An argument shown without a default is optional too: left out, the chart keeps its default.
chart is a GC chart.
Arguments
| Argument | Type | Description |
|---|---|---|
transcript | str, optional | Column of the transcript of each row. Default "transcript". |
type | str, optional | Column of the feature type: "exon", or a UTR ("5_utr", "3_utr"). |
strand | str, optional | Column of strands, as for GC(). |
group | str, optional | Column of groups, for the colours. Default: the group of the chart. |
selection | int, str or list, optional | The transcripts, by number (from 1) or name. Default: all. |
show | bool | Whether to show the transcripts. Default True. |
color_scheme, custom_colors | As for genes(). | |
style_exons, style_introns, style_utrs | dict | Styles of all exons, introns or UTRs. |
item_style_exons, item_style_introns, item_style_utrs | list of dict | Styles of single exons, introns or UTRs. |
group_style_exons, group_style_introns, group_style_utrs | dict of dict | Styles by group, e.g. {"tx1": {"fill": "red"}}. |
style_by | str, optional | The column the group styles are matched against. Default: group. |
label_options | dict | Options of the transcript labels, e.g. {"fontSize": "12px"}. |
**options | Further options. |
Value
GC: The chart.
