Sequence Logos as a Genome Track in CanvasXpress

The sequence logo is one of the most information-dense pictures in molecular biology. A stack of letters at each position, each letter scaled to how conserved and how frequent it is, tells you at a glance where a motif is rigid and where it tolerates variation. R users reach for ggseqlogo; now CanvasXpress draws sequence logos natively — and, crucially, as a track inside the genome browser, coordinate-aligned to everything else on the genomic axis.

A first-class genome track

Sequence logos join box, bar, heatmap, sequence, line, and triangle as a track type in the Genome chart. Add a track with type: "seqlogo" and it renders per-position letter stacks lined up exactly with the genomic coordinates of every other track. Your binding-site logo sits directly beneath the gene arrows, the variant density, and the coverage histogram, all on the same axis, all zooming and panning together. The motif is not a separate figure pasted alongside the browser — it is part of the browser.

Full ggseqlogo fidelity

The track covers the range a motif analysis actually needs:

Within each column the letters stack smallest to largest with the tallest on top, exactly as a logo should read, and the track draws its own y-axis labelled in bits or probability.

The detail that makes it a true logo

What distinguishes a real sequence logo from a row of letters is that each letter is stretched — non-uniformly — to fill the width of its column and the exact height its frequency earns. CanvasXpress draws these with a dedicated glyph primitive that scales a character independently in x and y to fill its box. Because that primitive is built from the same low-level drawing operations the engine already replays into its SVG and PDF export contexts, a logo you build interactively exports to vector formats for free — letters crisp and correctly proportioned at any zoom, ready for a figure.

Configuring it

{
  "graphType": "Genome",
  "featureSeqLogoMethod": "bits",
  "featureSeqLogoColorScheme": "nucleotide",
  "featureSeqLogoHeight": 60,
  "featureSeqLogoShowAxis": true,
  "tracks": [
    {
      "name": "Binding motif",
      "type": "seqlogo",
      "data": [
        { "offset": 0, "sequences": ["ACGTA", "ACGTA", "ACGAA", "ACGCA"] }
      ]
    }
  ]
}

Toggle the method from bits to probability and the stacks visibly rescale: the information-content view emphasizes conserved positions, the probability view shows composition. Feed a precomputed matrix with signed values and letters draw below the baseline for a two-sided logo.

Why align it to the genome

A motif means more in context. A transcription-factor binding logo is far more informative sitting at its genomic locus, beneath the gene it regulates and above the conservation track, than floating in isolation. Because the seqlogo track shares the genome browser's coordinate system, you can line a motif up against variants that fall inside it, against the exons it sits near, against coverage and annotation — and zoom the whole stack together. For splice-site logos, protein-domain conservation, CRISPR target composition, or any motif tied to a position, that alignment is the point.

Sequence logos join gene-arrow maps, whole-genome karyotypes, and Manhattan and Miami plots as part of a genome browser that keeps absorbing the specialized figures genomics depends on — each one data-driven, interactive, and publication-ready on export, all on one shared axis.