Skip to content
PointillViz Build & publish a tool
PointillViz

© 2026 PointillViz

All tools

Smoothie

No ratings yet by PointillViz reference tools

Which genes share a spatial pattern across the tissue, grouped into modules.

Download .pvtool · 57.1 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

Smoothie: six small maps of cells, each glowing in a different pattern, one for each gene module. An illustration, not a real tissue.
Download

Readme

Which genes share a spatial pattern in this tissue, and where does each group of genes lie?

The tool runs Smoothie with the authors’ own Python package, smoothie-st, and the settings of their pipeline for single-cell data.

First, each gene’s normalized expression is smoothed over the tissue. At each location u, nearby cells j contribute with the Gaussian weights w(u,j)=exp(−d(u,j)2/2σ2), where d(u,j) is their distance and σ the smoothing width:

The smoothed maps of every pair of genes g and h are then compared using the Pearson correlation r(g,h). Two genes are linked when r(g,h) exceeds the cutoff c, and the clustering power p discounts weak links:

The Infomap algorithm clusters this network into modules, numbered from the largest. Genes without a link join no module.

Figure. One panel per module. Each location’s module score is the sum of the module’s smoothed genes, each scaled from 0 to its own highest value. Grey indicates low scores, red high scores and black the highest within each panel, so compare the patterns of different panels rather than their strengths.

Table. Each row represents one module. Genes gives its size, and Members lists its genes, the most connected first. Mean margin averages the margins of its genes, which compare a gene’s mean link weight A within its module with its highest mean link weight B to another module:

A margin of 1 means that the gene is linked only within its module, 0 that it is equally close to another module, and negative values that it is closer to another module. A download lists every gene in a module with its network measures.

Summary. The package repeats the smoothing and correlations with the cell positions shuffled. The 99.9th percentile of these shuffled correlations is the authors’ lowest sensible cutoff, because weaker correlations also arise without any spatial pattern. The summary reports this bound and warns when the cutoff lies below it.

A module groups correlated genes and carries no p-value. Genes of one cell type correlate wherever its cells lie, so a module can reflect shared cells rather than a pattern of the tissue.

References

Holdener C, De Vlaminck I. Smoothie: efficient inference and integration of spatial co-expression networks from denoised spatial transcriptomics data. Commun Biol 9, 459 (2026). https://doi.org/10.1038/s42003-026-09898-z

Parameters

ParameterDefaultWhat it does
Smoothing width (microns) smoothing_width Default: 20Range 5 to 200. Sets the width of the Gaussian that smooths each gene over the tissue, its standard deviation. The authors find 20 to 40 µm works best. Wider finds broader patterns; sparse tissue needs it wider.
Correlation cutoff correlation_cutoff Default: 0.4Range 0.1 to 0.95. Links two genes when their smoothed maps correlate above this. Higher keeps fewer genes, in tighter modules. Lower takes longer. The summary gives the authors’ lower bound for this run.
Clustering power clustering_power Default: 4Range 1 to 9. Sets how strongly weak links are discounted when the network is clustered. Higher gives more, smaller modules. The authors find 1 to 6 reasonable.

Outputs

  • summaryWrites a summary
  • tableReturns a table
  • 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, 57.1 kB packed and 270.5 kB unpacked, plugin.json at the root.

  2. manifestpass

    smoothie 1.0.1 by PointillViz reference tools; Python entry tool.py, outputs summary, table, 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 5.97 s and defines run(ds, params).

  5. imports advisorypass

    1 source file, using anndata, csv, io, itertools, math, matplotlib, numpy, os, pointillviz_tool, scanpy, scipy, smoothie, tempfile, warnings; no network, subprocess, filesystem-write, dynamic-exec or environment use found.

  6. fixturepass

    ran on the 600-cell fixture in 11.34 s, returning summary, table, files, images and 57 log lines.

  7. resultpass

    returned the declared outputs: summary, table, files, images.

  8. edgepass

    at the minimum corner (clustering_power=1.0, correlation_cutoff=0.1, smoothing_width=5.0) it refused in words rather than crashing: At a smoothing width of 5 µm, more than 15% of the tissue has fewer than 10 cells within 15 µm, the reach of the smoothing. Widen it to at least 7 µm. (code: too_sparse); ran at the maximum corner (clustering_power=9.0, correlation_cutoff=0.95, smoothing_width=200.0) in 11.35 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