View source: R/get_maple_scores.R
get_maple_scores | R Documentation |
This function allows you to compute posterior uncertainty and continuous phenotype scores
get_maple_scores(fit)
fit |
A list returned by fit_maple() |
A fit object (list)
## Not run: brain1 <- LoadData("stxBrain", type = "anterior1") brain2 <- LoadData("stxBrain", type = "anterior2") brain1 <- SCTransform(brain1, assay = "Spatial", verbose = FALSE) brain2 <- SCTransform(brain2, assay = "Spatial", verbose = FALSE) brain <- merge(brain1,brain2) DefaultAssay(brain) <- "SCT" VariableFeatures(brain) <- c(VariableFeatures(brain1),VariableFeatures(brain2)) brain <- RunPCA(brain) brain_fit_PCs <- fit_maple(brain,K = 6,emb = "PCs") brain_fit_scores <- get_maple_scores(brain_fit_PCs) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.