Ridge Map
How a gene, or the density of cells, rises and falls across a section, drawn as a relief of ridges.
In PointillViz: Tools → Store → Install, or Install from file with the download. How to install and run a tool
This runs as you: a tool is arbitrary code, with your privileges. Safety note

Readme
How does a gene’s expression, or the density of cells, rise and fall across the section, and over which cell types?
The tool cuts the section into horizontal strips and draws each one as a ridge, like a joy plot laid over the tissue. Ridges are drawn from the back of the figure to the front, and each hides what stands behind it, so the tissue’s architecture reads as a relief.
Heights and colors are measured with a Gaussian of width around each point of a strip, so the strips are cross-sections of one smooth surface. A cell at distance has the weight . With a gene selected, the height is its local mean expression, where is the cell’s expression in log1p(CP10K):
Without a gene, the height is the local cell density:
Figure. A ridge rises up the figure from its own strip, so a peak belongs to the place where its ridge starts, not to the place where its top appears. The bar in the key shows a round value at its true height; each run has its own scale, so compare runs by these bars. Each stretch of a ridge takes the map’s color of the cell type with the most cells around it. The color therefore shows which cell type is most common at that place, not which cells express the gene, and a rare cell type may never be drawn. Ridges drop to their baseline where the tissue ends, so gaps and tears stay black. With several sections, each gets its own figure, all at one scale.
Summary. It reports what was drawn, the scale of the heights and the cell types under the tallest ridges, and counts the cells that were not drawn.
The figure is meant for reading the shape of a tissue, not for testing it: heights carry no significance, and tall ridges can hide lower ones behind them.
Parameters
| Parameter | Default | What it does |
|---|---|---|
Gene gene |
optionala gene | Selects the gene whose local expression sets the height of the ridges. With no gene chosen, the height is the local cell density. |
Strips strips |
Default: 120Range 20 to 300. | Sets how many horizontal strips the section is cut into, one ridge each. More strips draw finer detail; fewer draw a bolder figure. |
Relief relief |
Default: 8Range 1 to 30. | Sets how tall the tallest ridge stands, in strip heights. Taller ridges make a more dramatic landscape and hide more of what stands behind them. |
Smoothing smoothing |
Default: 0.75Range 0.25 to 3. | Sets the width of the neighbourhood each height and colour is measured in, the σ of a Gaussian, in strip heights. Larger values draw calmer ridges and longer stretches of one colour. |
Outputs
summaryWrites a summaryimagesReturns figuresfilesReturns files to download
More tools
-

Cell-type contact network
Which cell types touch which, from a Delaunay triangulation of the cells, as a network and a matrix corrected for abundance.
-

Categorical Chords
Explore spatial contacts or shared membership between categorical annotations with count-weighted ribbons and enrichment colors.
-

Cell-Type Co-occurrence
Which cell types are found near each other more often than expected by chance.
-

Cell-Type Percolation
Whether a cell type is one connected mass or many islands.