get_maple_scores: Get posterior probability scores

View source: R/get_maple_scores.R

get_maple_scoresR Documentation

Get posterior probability scores

Description

This function allows you to compute posterior uncertainty and continuous phenotype scores

Usage

get_maple_scores(fit)

Arguments

fit

A list returned by fit_maple()

Value

A fit object (list)

Examples

## 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)

maple documentation built on March 18, 2022, 6:02 p.m.