R/Bioconductor package implementing our method nnSVG
for scalable identification of spatially variable genes (SVGs) in spatially resolved transcriptomics (ST) data.
nnSVG
is based on nearest-neighbor Gaussian processes (Datta et al., 2016, Finley et al., 2019) and uses the BRISC algorithm (Saha and Datta, 2018) for model fitting and parameter estimation. nnSVG
allows identification and ranking of SVGs with flexible length scales across a tissue slide or within spatial domains defined by covariates. The method scales linearly with the number of spatial locations and can be applied to datasets containing thousands or more spatial locations.
The nnSVG
package is integrated into the Bioconductor framework and uses the SpatialExperiment class to store ST data and results.
More details on the method will be provided in our paper (to be submitted to bioRxiv soon).
The package is currently available from GitHub and the devel
version of Bioconductor.
The package can be installed from the devel
version of Bioconductor as follows. Note this requires R version 4.2 and the devel version of Bioconductor to be installed.
install.packages("BiocManager")
BiocManager::install("nnSVG")
Alternatively, the package can also be installed from GitHub as follows, including updated versions of dependencies:
remotes::install_github("drighelli/SpatialExperiment")
remotes::install_github("lmweber/STexampleData")
install.packages("BRISC")
remotes::install_github("lmweber/nnSVG")
An extended example and tutorial is available in the package vignette.
A preprint describing nnSVG
will be submitted to bioRxiv soon.
- Nearest-neighbor Gaussian processes (NNGP): Datta et al. (2016), Finley et al. (2019)
- BRISC: Saha and Datta (2018)