Description Usage Arguments Value Author(s) Examples
Creates a tree object representing a cell-type hierarchy
1 2 3 4 5 6 7 8 9 10 | train_node(
tree,
data,
pvar,
reduction,
scaledata,
model,
allowParallel,
verbose
)
|
tree |
Hierarchy created via |
data |
Seurat object containing cells used to train hierarchical models |
pvar |
Prediction variable. Column name in Seurat object metadata containing the cell labels of the terminal nodes of the hierarchy tree |
reduction |
Name of reduction in Seurat objet to be used to determine the feature space. Default: "pca" |
scaledata |
Whether to select variable features and scale the data of the reference object. Default: FALSE |
model |
Classification model supported via caret package. A list of all models can be found here in https://topepo.github.io/caret/available-models.html |
allowParallel |
Allow parallel processing for resampling? |
verbose |
Print Seurat messages |
A data.tree object containing the cell type hierarchy
Lieke Michielsen and Jose Alquicira-Hernandez
1 2 3 | branches <- c("Myeloid/DC/pDC", "Myeloid/DC/cDC")
h <- create_hierarchy(branches)
train_tree(data, h)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.