Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Circos Plot

Signature

sp.circos(title, labels, categories, axes, matrix, series, series_names, edges_i, edges_j, *, variant="basic", **kwargs) -> Chart

Aliases: sp.circos, sp.circos_plot, sp.multitrack_circle, sp.genome_browser, sp.circular_tracks

Description

A multi-track circular plot in the spirit of Circos genome browsers: items sit on a shared ring, grouped into colored cluster arcs, and every other dataset dimension becomes its own concentric track — bar tracks, a sequential heatmap, a normalized composition ring, single-value tracks (ratio, rank, degree) on their own color ramp, and a network of co-occurrence chords through the center. Every ring is independently hoverable.

Variants

Data

labels (list[str]) — Item names around the ring. categories (list[str]) — Cluster assignment per item, drawn as colored boundary arcs. axes (list[str]) — Column names for the heatmap/composition matrix (e.g. age groups). matrix (list[list[float]]) — One row per item, one value per axes column; also drives the derived average/spread/composition tracks. series (list[list[float]]) — One or more bar tracks, one value per item. series_names (list[str]) — Name per bar track. edges_i / edges_j (list[int]) — Source/target item indices for the center co-occurrence chords. width / height (int) — Chart dimensions.

Parameters

Themes

Returns

Chart — object with .html property and .show() method.

Parameters

Full multi-track layout: item labels, co-occurrence degree, average value + spread, cluster boundaries, bar tracks, a ratio and a rank track, a sequential heatmap, a normalized composition ring, and center co-occurrence chords.

Variant "basic"Aliases basic / default / classic / multitrack / genome_browser / circular_tracks
Preview