cell_type<- {scClassifR}R Documentation

Setter for cell_type Change cell type for a classifier

Description

Setter for cell_type Change cell type for a classifier

Usage

cell_type(classifier) <- value

Arguments

classifier

scClassifR object. The object is returned from the train_classifier function.

value

the new cell type

Value

scClassifR object with the new cell type.

Examples

data("tirosh_mel80_example")
selected_features_B = c("CD19", "MS4A1", "CD79A")
set.seed(123)
clf_b <- train_classifier(train_obj = tirosh_mel80_example, 
features = selected_features_B, cell_type = "B cells")
cell_type(clf_b) <- "B cell"

[Package scClassifR version 1.1.2 Index]