Stan2BASiCS | R Documentation |
BASiCS_Chain
objects.Convert Stan fits to BASiCS_Chain
objects.
Stan2BASiCS(
x,
gene_names = attr(x, "gene_names"),
cell_names = attr(x, "cell_names"),
size_factors = attr(x, "size_factors")
)
x |
A stan object |
gene_names, cell_names |
Gene and cell names. The reason this argument
exists is that by default, stan fit parameters are not named.
NOTE: this must be the same order as the
data supplied to |
size_factors |
Cell-specific scaling normalisation factors, to be
stored as part of the chain object when |
A BASiCS_Chain
object.
library("BASiCS")
sce <- BASiCS_MockSCE(NGenes = 10, NCells = 10)
fit_spikes <- BASiCStan(sce, ReturnBASiCS = FALSE, tol_rel_obj = 1)
summary(fit_spikes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.