Seurat (version 2.3.4)

BuildRFClassifier: Build Random Forest Classifier

Description

Train the random forest classifier

Usage

BuildRFClassifier(object, training.genes = NULL, training.classes = NULL,
  verbose = TRUE, ...)

Arguments

object

Seurat object on which to train the classifier

training.genes

Vector of genes to build the classifier on

training.classes

Vector of classes to build the classifier on

verbose

Additional progress print statements

...

additional parameters passed to ranger

Value

Returns the random forest classifier

Examples

Run this code
# NOT RUN {
pbmc_small
# Builds the random forest classifier to be used with ClassifyCells
# Useful if you want to use the same classifier with several sets of new data
classifier <- BuildRFClassifier(pbmc_small, training.classes = pbmc_small@ident)

# }

Run the code above in your browser using DataCamp Workspace