Learn R Programming

MethScope (version 1.0.0)

PredictCellType: Predict cell type annotation from the trained model

Description

Predict cell type annotation from the trained model

Usage

PredictCellType(bst_model, predictMatrix, smooth = FALSE, KNeighbor = 5)

Value

A cell by cell type matrix with confidence score and labeled cell type.

Arguments

bst_model

The boosting model trained from ModelTrain

predictMatrix

A wide cell by pattern matrix generated from GenerateInput function

smooth

A Boolean variable to indicate whether smooth the matrix (Default: FALSE)

KNeighbor

number of knn neighbors to use for smoothing (Default: 5)

Examples

Run this code
qry <- system.file("extdata", "toy.cg", package = "MethScope")
msk <- system.file("extdata", "toy.cm", package = "MethScope")
res <- GenerateInput(qry, msk)
if (FALSE) {
prediction <- PredictCellType(Liu2021_MouseBrain_P1000,res)
}

Run the code above in your browser using DataLab