docs: add point density maps example - #19
Open
timtreis wants to merge 1 commit into
Open
Conversation
New examples/point_density.ipynb documenting render_points(density=, density_how=) (#679), previously undocumented. Uses the full 10x Xenium breast-cancer sample (~43M transcripts, SpatialData sandbox), fetched via pooch and read with sd.read_zarr. Covers: - the overplotting problem (markers on a cropped 2 mm^2 window) - density=True -> a datashader count-density heatmap of all transcripts - density_how (linear/log/eq_hist) reshaping the intensity mapping - per-category density via a categorical color + groups - the parameters density ignores (size/transfunc/norm limits/datashader_reduction) Executed against spatialdata-plot v0.4.1; committed with outputs. Adds the examples gallery card + toctree + thumbnail. Closes P0.2 of the doc-coverage analysis. Note: this notebook downloads ~3.6 GB (the Xenium zarr). Consider excluding it from the weekly execute-all cron, or gating it, to keep CI light.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
📖 Docs preview: https://scverse.org/spatialdata-plot-tutorials/pr-19/gallery.html Built from 3ed5a47; redeployed on every push. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
examples/point_density.ipynbdocumentingrender_points(density=, density_how=)(#679) — a v0.4.0 feature with no prior tutorial.Uses the full 10x Xenium breast-cancer sample (Janesick et al., SpatialData sandbox) — ~43 million transcripts — so the density maps are dense, smooth surfaces that resolve ducts and tumour nests (the small
squidpy.datasets.cellscrop, only 19k transcripts, was too sparse to show the feature).Covers:
density=True→ a datashader count-density heatmap of all transcriptsdensity_how(linear/log/eq_hist) reshaping the intensity mappingcolor+groupssize,transfunc,normlimits,datashader_reduction)Data is fetched via
pooch.retrieve(hash-pinned) +sd.read_zarr. Executed against spatialdata-plot v0.4.1, committed with outputs. Adds the examples gallery card + toctree + thumbnail.Part of the documentation-expansion series from the 0.4.0/0.4.1 gap analysis (P0.2).