Description Usage Arguments Value Author(s) Examples
Predict the labels of a dataset using a tree object
1 | predictTree(tree, newData, threshold = 0, max.iter.harmony = 10)
|
tree |
data.tree object storing the hierarchy and trained classifiers per layer |
newData |
Seurat object containing cells to annotate |
threshold |
Threshold used for probabilities to classify cells into classes. All cells below this threshold value will be labels as "unassigned". |
max.iter.harmony |
Maximum number of clustering iterations by harmony |
A Seurat object with additional metadata columns with prediction probabilities associated to each
class, a prediction
column, indicating the classification based on the provided threshold and
a generic_class
column without "unassigned" labels.
Lieke Michielsen and Jose Alquicira-Hernandez
1 2 3 4 | branches <- c("Myeloid/DC/pDC", "Myeloid/DC/cDC")
h <- create_hierarchy(branches)
train_tree(dataTrain, h)
dataTest <- predictTree(h, dataTest)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.