Skip to content

GC.scale() ​

Set the scale of the clusters, and add an axis.

Usage ​

python
chart.scale(
    cluster,
    start,
    end,
    padding,
    hidden,
    breaks,
    tick_values,
    reverse,
    axis_position,
    axis_type,
    y,
    scale_breaks,
    scale_break_threshold,
    scale_break_padding,
    ticks_count,
    ticks_format,
    tick_style,
    text_style,
    line_style,
    **options,
)

An argument shown without a default is optional too: left out, the chart keeps its default.

chart is a GC chart.

Arguments ​

ArgumentTypeDescription
clusterint, str or list, optionalThe clusters, by number (from 1) or name. Default: all.
start, endfloat or list of float, optionalStart and end of the scale, per cluster or for all.
paddingfloat or str, optionalPadding around the genes, in percent or e.g. "500bp".
hiddenboolWhether to hide the axis. Default False.
breakslist of dict or pandas.DataFrameBreaks in the scale, e.g. [{"start": 100, "end": 200}], or a data frame with start and end columns and, for breaks per cluster, a cluster column.
tick_valueslist of float, optionalPositions of the ticks.
reverseboolWhether to reverse the scale. Default False.
axis_positionstr, optional"bottom" or "top".
axis_typestr"position" or "range". Default "position".
yfloat, optionalVertical position of the axis.
scale_breaksboolWhether to break the scale where genes are far apart (autoBreaks in the spec). Default False.
scale_break_thresholdfloatGaps longer than this percentage of the cluster get a break (autoBreakThreshold). Default 20.
scale_break_paddingfloat or strRoom around automatic breaks, in percent or e.g. "500bp" (breakPadding). Default 1.
ticks_countint, optionalNumber of ticks.
ticks_formatstr, optionald3 format of the tick labels, e.g. ",.0f".
tick_style, text_style, line_styledictStyles of the ticks, their text and the axis line.
**optionsFurther options.

Value ​

GC: The chart.