delete_model: Delete model/branch from package

Description Usage Arguments Value Examples

View source: R/tree.R

Description

Delete model/branch from package

Usage

1
delete_model(cell_type, path.to.models = ".")

Arguments

cell_type

string indicating the cell type of which the model will be removed from package Attention: deletion of a parent model will also delete all of child model.

path.to.models

path to the folder containing the list of models in which the to-be-deleted model is.

Value

no return value, but the model is deleted from database

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# load small example dataset
data("tirosh_mel80_example")

# train a classifier
set.seed(123)
selected_features_T = c("CD4", "CD8A", "CD8B")
clf_t <- train_classifier(train_obj = tirosh_mel80_example, 
features = selected_features_T, cell_type = "t cells")

# save a classifier to system
save_new_model(new_model = clf_t)

# delete classifier from system
delete_model("t cells")

grisslab/scClassifR documentation built on Oct. 27, 2021, 12:13 p.m.