BASS
Bayesian Analytics for Spatial Segmentation
Install / Use
/learn @zhengli09/BASSREADME
BASS: Bayesian Analytics for Spatial Segmentation
Overview

Installation
BASS is implemented as an R (>= 4.0.3) package with underlying efficient C++ code interfaced through Rcpp and RcppArmadillo. BASS depends on a few other R packages that include GIGrvg, Matrix, harmony, label.switching, mclust, Rcpp, RcppArmadillo, RcppDist, SPARK, scran, and scater. Please refer to the package DESCRIPTION file for details. Dependent packages are supposed to be automatically installed while installing BASS.
Install the BASS R package maintained in github through the devtools package.
if(!require(devtools))
install.packages(devtools)
devtools::install_github("zhengli09/BASS")
library(BASS)
?BASS
How to use BASS
Check our vignettes.
Note: The use of harmony was updated in v1.1.0.017, which results in slight differences in the processed data after batch effect removal. To fully reproduce the results shown in the tutorial, please refer to the previous version of BASS.
Citing the work
If you find the BASS package, any of the source code, or processed data
in this repository and in the BASS-analysis
repository useful for your work, please cite:
Li, Z., Zhou, X. BASS: multi-scale and multi-sample analysis enables accurate cell type clustering and spatial domain detection in spatial transcriptomic studies. Genome Biol 23, 168 (2022). https://doi.org/10.1186/s13059-022-02734-7
Visit our group website for more statistical tools on analyzing spatial transcriptomic data.
Release Notes
Latest:
- (
v1.1.0.017) Updated the use ofharmonypackage to its version 1.2.1 - (
v1.1.0.016) Fixed a bug inBASS.preprocessrelated toHarmonyMatrix - (
v1.1.0.014) Enabled ARMA_64BIT_WORD such that sp_mat can handle large matrices
v1.1.0:
- Changed functional programming to OO programming
- Optimized the implementation for Swendsen-Wang algorithm
- Updated threshold and message for checking the convergence of the spatial parameter beta
