Last updated: 2022-02-27
Checks: 2 0
Knit directory: BASS-analysis/
This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version 4ec8df1. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish
or wflow_git_commit
). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:
working directory clean
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were made to the R Markdown (analysis/index.Rmd
) and HTML (docs/index.html
) files. If you’ve configured a remote Git repository (see ?wflow_git_remote
), click on the hyperlinks in the table below to view the files as they were in that past version.
File | Version | Author | Date | Message |
---|---|---|---|---|
Rmd | 4ec8df1 | zhengli09 | 2022-02-27 | Publish the introduction, simulation analysis and STARmap analysis |
html | b2c476b | zhengli09 | 2022-02-06 | Build site. |
html | a6097f4 | zhengli09 | 2022-02-06 | Build site. |
Rmd | 9f8756a | zhengli09 | 2022-02-06 | Start workflowr project. |
This website maintains code for reproducing simulation and real data application results described in the upcoming paper.For the software, please to refer to BASS.
BASS is a method for multi-scale and multi-sample analysis in spatial transcriptomics. BASS performs multi-scale transcriptomic analyses in the form of joint cell type clustering and spatial domain detection, with the two analytic tasks carried out simultaneously within a Bayesian hierarchical modeling framework. For both analyses, BASS properly accounts for the spatial correlation structure and seamlessly integrates gene expression information with spatial localization information to improve their performance. In addition, BASS is capable of multi-sample analysis that jointly models multiple tissue sections/samples, facilitating the integration of spatial transcriptomic data across tissue samples.
BASS relies on a Bayesian hierarchical modeling framework that describes the relationship among gene expression features, cell type labels, spatial domain labels, cell type compositions, and neighborhood graphs in a hierarchical fashion: \[ \boldsymbol{x}_i^{(l)} | c_i^{(l)} = c \sim MVN(\boldsymbol{\mu}_c, \boldsymbol{\Sigma}) \] \[ c_i^{(l)} | z_i^{(l)} = r \sim Cat(\boldsymbol{\pi}_r) \] \[ \boldsymbol{z}^{(l)} \sim Potts(V^{(l)}, \beta) \] Above, the first equation models the expression feature of the \(i\)th cell on section \(l\), \(\boldsymbol{x}_i^{(l)}\), as depending on its cell type label \(c_i^{(l)}\) with a multivariate normal distribution parameterized by a cell type-specific mean parameter \(\boldsymbol{\mu}_c\) and a variance-covariance matrix \(\boldsymbol{\Sigma}\). The second equation models the probability of the \(i\)th cell belonging to the cell type \(c\) as depending on the underlying spatial domain with a categorical distribution parameterized by the \(r\) domain-specific cell type composition vector \(\boldsymbol{\pi}_r\). The third equation models the spatial domain label of all cells on the section \(l\), \(\boldsymbol{z}^{(l)}\), as a function of the neighoborhood graph \(V^{(l)}\) through a homogeneous Potts model characterized by an interaction parameter \(\beta\).