caret_model: caret_model

View source: R/class.R

caret_modelR Documentation

caret_model

Description

Returns the caret model of the scAnnotatR object

Usage

caret_model(classifier)

Arguments

classifier

scAnnotatR object

Value

Classifier is the object returned by caret SVM learning process. More information about the caret package: https://topepo.github.io/caret/

Examples

data("tirosh_mel80_example")
selected_marker_genes_B = c("CD19", "MS4A1", "CD79A")
set.seed(123)
classifier_b <- train_classifier(train_obj = tirosh_mel80_example,
assay = 'RNA', slot = 'counts', marker_genes = selected_marker_genes_B, 
cell_type = "B cells", tag_slot = 'active.ident')
caret_model(classifier_b)
 

grisslab/scAnnotatR documentation built on March 20, 2023, 2:42 a.m.