Skip to content

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 ​

ArgumentTypeDescription
transcriptstr, optionalColumn of the transcript of each row. Default "transcript".
typestr, optionalColumn of the feature type: "exon", or a UTR ("5_utr", "3_utr").
strandstr, optionalColumn of strands, as for GC().
groupstr, optionalColumn of groups, for the colours. Default: the group of the chart.
selectionint, str or list, optionalThe transcripts, by number (from 1) or name. Default: all.
showboolWhether to show the transcripts. Default True.
color_scheme, custom_colorsAs for genes().
style_exons, style_introns, style_utrsdictStyles of all exons, introns or UTRs.
item_style_exons, item_style_introns, item_style_utrslist of dictStyles of single exons, introns or UTRs.
group_style_exons, group_style_introns, group_style_utrsdict of dictStyles by group, e.g. {"tx1": {"fill": "red"}}.
style_bystr, optionalThe column the group styles are matched against. Default: group.
label_optionsdictOptions of the transcript labels, e.g. {"fontSize": "12px"}.
**optionsFurther options.

Value ​

GC: The chart.