Commit 1fbd167
feat: add as_points tutorial
Show the how and why of `as_points` on both render_shapes and
render_labels, using a real Xenium breast-cancer section (~168k cells).
Covers what it draws (one centroid dot per element), what it ignores
(outline_*, shape, contour_px), the matplotlib->datashader backend
switch at ~50k centroids, and the measured speed trade-off: a large
win for shapes (up to ~16x), roughly neutral for labels (a mask
already renders as a fast raster).
Segmentation masks are derived from the real cell_boundaries via
rasterize(return_regions_as_labels=True), since Xenium rep1 ships
outlines as shapes with no native labels element.
The 3.4 GB download makes the notebook too heavy for CI, so it is
excluded from execute.yaml and its committed outputs are trusted.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9482378 commit 1fbd167
4 files changed
Lines changed: 749 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
Loading
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
0 commit comments