Skip to content

Commit 740ed18

Browse files
committed
feat: add spatial utilities for plotting in Seurat and Giotto
- Introduced a new R script `spatialutils.R` containing utility functions for spatial plotting. - Defined arguments for spatial plot functions, including options for images, masks, shapes, and points. - Implemented functions to handle background rectangles, extract points arguments, and process points layers for Seurat spatial plots. - Added support for molecule-specific plotting and new scale layers.
1 parent ed8463f commit 740ed18

37 files changed

Lines changed: 72309 additions & 1215 deletions

R/spatialplot.R

Lines changed: 547 additions & 383 deletions
Large diffs are not rendered by default.

R/spatialutils.R

Lines changed: 294 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ $ conda install pwwang::r-scplotter
6262

6363
![](./man/figures/clonaldiv.png)
6464

65+
## Spatial data
66+
67+
[`SpatDimPlot`][23] | [`SpatFeaturePlot`][24]
68+
69+
![](./man/figures/spatialplot.png)
70+
6571
## Visualization with LLMs
6672

6773
```r
@@ -107,3 +113,5 @@ chat$ask("Do a heatmap instead")
107113
[20]: https://pwwang.github.io/scplotter/reference/ClonalPositionalPlot.html
108114
[21]: https://github.com/ncborcherding/scRepertoire
109115
[22]: https://pwwang.github.io/scplotter/reference/ClonalDynamicsPlot.html
116+
[23]: https://pwwang.github.io/scplotter/reference/SpatDimPlot.html
117+
[24]: https://pwwang.github.io/scplotter/reference/SpatFeaturePlot.html

_pkgdown.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,22 @@ navbar:
1616
href: Seurat.10x_VisiumHD.html
1717
- text: "Visualizing SlideSeq data prepared with Seurat"
1818
href: Seurat.SlideSeq.html
19+
- text: "Visualizing Xenium data prepared with Seurat"
20+
href: Seurat.Xenium.html
21+
- text: "Visualizing Nanostring CosMx data prepared with Seurat"
22+
href: Seurat.Nanostring_CosMx.html
23+
- text: "Visualizing Visium data prepared with Giotto"
24+
href: Giotto.Visium.html
25+
- text: "Visualizing VisiumHD data prepared with Giotto"
26+
href: Giotto.VisiumHD.html
1927
- text: "Visualizing Xenium data prepared with Giotto"
20-
href: Giotto.XeniumInsitu.html
28+
href: Giotto.Xenium.html
29+
- text: "Visualizing SlideSeq data prepared with Giotto"
30+
href: Giotto.SlideSeq.html
31+
- text: "Visualizing Spatial CITE-Seq data prepared with Giotto"
32+
href: Giotto.Spatial_CITE-Seq.html
33+
- text: "Visualizing Nanostirng CosMx data prepared with Giotto"
34+
href: Giotto.Nanostring_CosMx.html
2135
reference:
2236
- title: scRNA-seq
2337
desc: Functions for plotting single cell RNA-seq data

man/SpatDimPlot.Rd

Lines changed: 195 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)