Skip to content
PointillViz Build & publish a tool
PointillViz

© 2026 PointillViz

All tools

Ridge Map

No ratings yet by PointillViz reference tools

How a gene, or the density of cells, rises and falls across a section, drawn as a relief of ridges.

Download .pvtool · 34.9 kB

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

Ridge map: rows of coloured ridges, each hiding the one behind it, rising into a relief over a rounded shape. An illustration, not a real tissue.
Download

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 j at distance dj has the weight wj=exp(−dj2/2σ2). With a gene selected, the height is its local mean expression, where aj 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

ParameterDefaultWhat 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 summary
  • imagesReturns figures
  • filesReturns files to download

Tool test summary

9 of 9 gates passed when this version was released. They ran in this order:

  1. bundlepass

    6 files, 34.9 kB packed and 163.0 kB unpacked, plugin.json at the root.

  2. manifestpass

    ridge-map 1.0.1 by PointillViz reference tools; Python entry tool.py, outputs summary, images, files.

  3. environmentpass

    pixi.lock matches pixi.toml, which declares python, numpy, scipy for linux-64, osx-64, osx-arm64, win-64; environments: default.

  4. entrypass

    tool.py imported in 0.26 s and defines run(ds, params).

  5. imports advisorypass

    1 source file, using colorsys, html, math, numpy, pointillviz_tool, re, scipy; no network, subprocess, filesystem-write, dynamic-exec or environment use found.

  6. fixturepass

    ran on the 600-cell fixture in 0.23 s, returning summary, files, images.

  7. resultpass

    returned the declared outputs: summary, files, images.

  8. edgepass

    ran at the minimum corner (relief=1.0, smoothing=0.25, strips=20) in 0.23 s; ran at the maximum corner (relief=30.0, smoothing=3.0, strips=300) in 0.36 s.

  9. no_mutationpass

    the fixture dataset's 4 files are byte-identical after every run (plugin_cache/, where ds.knn caches, is excluded by design).

Passing the gates is a statement about the gates, not about whether the code is safe to run.

What each gate checks