GC.links()
Add links between genes of neighbouring clusters.
Usage
python
chart.links(
group,
data,
value1,
value2,
cluster,
curve,
measure,
show_links,
label,
label_position,
normal_color,
inverted_color,
low_color,
vmin,
vmax,
use_group_colors,
color_bar,
color_bar_options,
link_width,
link_style,
label_style,
**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 |
|---|---|---|
group | str, optional | Column matched between clusters: genes with the same value are linked. |
data | pandas.DataFrame, optional | Links to draw instead, e.g. from protein_blast(). |
value1, value2 | list, optional | Pairs of group values to link, of the same length: each value of value1 is linked to the value of value2 in the same place. Give both or neither; with neither, genes of the same group are linked. |
cluster | list, optional | The clusters to link, at least two. Default: all. |
curve | bool, optional | Whether links are curved. |
measure | str | "identity", "similarity" or "none": what colours and labels the links. Default "identity". |
show_links | bool | Whether to show the links (show in the spec). Default True. |
label | bool | Whether to label the links with the measure. Default True. |
label_position | str | "gene" or "link". Default "gene". |
normal_color, inverted_color, low_color | str, optional | Colours of links, of inverted links, and of low values. |
vmin, vmax | float, optional | The range of the measure for the colours. |
use_group_colors | bool | Whether links take the colour of their group. Default False. |
color_bar | bool, optional | Whether to show a colour bar. |
color_bar_options | dict | Options of the colour bar: position, orientation, labels, legendSide. |
link_width | float, optional | Width of the links. |
link_style, label_style | dict | Styles of the links and their labels. |
**options | Further options. |
Value
GC: The chart.
