Whole-Genome Karyotypes in CanvasXpress

Some questions are about one locus. Many are about the whole genome at once: where do the pathogenic variants cluster across all chromosomes? Which arms carry the copy-number gains? How does variant density vary chromosome to chromosome? For those questions you need the classic cytogenetic view — every chromosome of the assembly laid out together as small multiples, each as its own banded ideogram, with your annotations placed on the right chromosome at the right position.

CanvasXpress now draws exactly that. The same graphType:"Genome" browser you use for a single locus expands into a whole-genome karyotype with one switch.

One parameter turns it on

Set ideogramChromosomeNumber to "all" and the genome view lays out every chromosome of the assembly as a grid of ideogram panels, each on its own genomic scale, in assembly order. The longest chromosome sets the scale and the shorter ones shrink in proportion — so chromosome 1 is longest and chromosome 21 is short, the familiar karyotype silhouette.

{
  "graphType": "Genome",
  "ideogramChromosomeNumber": "all",
  "ideogramLayoutColumns": 0
}

ideogramLayoutColumns controls the grid; 0 lets the view choose a sensible layout. The human assembly hg38 is bundled, so a whole-genome karyotype renders out of the box with correct band data and per-chromosome lengths. Other assemblies load through the existing mechanism for appending chromosome band sets.

Crucially, the default single-chromosome path is untouched. Leave ideogramChromosomeNumber at its usual value and every genome chart you already have renders exactly as before. The karyotype is strictly additive.

Annotations that land on the right chromosome

A karyotype is only useful if your data lands where it belongs. The highlight system that marks regions and positions on a single chromosome now takes a chr key, so each highlight routes to its own panel:

{
  "graphType": "Genome",
  "ideogramChromosomeNumber": "all",
  "ideogramHighlights": [
    { "chr": "7",  "start": 55019017, "end": 55211628, "group": "Pathogenic" },
    { "chr": "17", "position": 43044295, "group": "Pathogenic" },
    { "chr": "13", "position": 32315474, "group": "Uncertain" }
  ]
}

A region box lands on chromosome 7, a marker on 17, another on 13 — each at genomic scale on its own panel. Group your highlights by clinical significance — Pathogenic, Benign, Uncertain — and a single grouped swatch legend spans the whole grid, so the categories appear once rather than repeating under every chromosome.

Data tracks beside every chromosome

The karyotype is not limited to markers. Each chromosome panel can carry its own data-overlay track — a histogram or heatmap drawn beside its ideogram — so a genome-wide copy-number-density or variant-density figure, the kind where every chromosome gets its own little density profile, comes straight out of the browser. The overlay reuses the same track renderers you already know, now drawn at per-chromosome scale.

Why it belongs in the browser, not a separate tool

Teams have long assembled whole-genome variant figures by hand — one ideogram image per chromosome, markers placed in a drawing program, legends built by hand, the whole thing re-done every time the data changes. Putting the karyotype inside the CanvasXpress genome browser means it is driven entirely by data and configuration: change the variant table and the figure regenerates, with every annotation on the correct chromosome at the correct base pair. It shares the engine's coordinate system, its color handling, and its export path, so the karyotype you build interactively exports to SVG and PDF at vector quality for publication.

It also sits alongside the rest of the genomics toolkit — gene-arrow maps, sequence-logo tracks, Manhattan and Miami plots — all in one browser, all on one coordinate model. A whole-genome overview and a single-locus zoom are now two settings of the same chart, not two different tools.

From cohort to cytogenetic map in one chart

Picture a clinical variant report: a table of variants, each with a chromosome, a position, and a classification. Tag each as an ideogramHighlights entry, set ideogramChromosomeNumber to "all", group by classification, and you have a genome-wide cytogenetic map — every variant on its chromosome, a legend spanning the grid, and a density track beside each arm — generated from the table, ready to zoom, and ready to publish.

The whole genome, at a glance, from the same browser you already use for a single gene.