hierarchyToClassificationTree | R Documentation |
Convert list with cell type hierarchy to classification tree in igraph format
hierarchyToClassificationTree(hierarchy)
hierarchy |
list of cell types, where each element represent a cell type. If cell type has some subtypes it's represented as another list, otherwise it's just a string |
igraph graph with the type hierarhcy
hierarchy <- list( Alveolar=c("AT1 Cell", "AT2 Cell"), B=c("B Cell", "Ig-producing B cell"), NK_T=list(`T`=c("Dividing T cells", "T Cell_Cd8b1 high", "Nuocyte"), "NK Cell"), "Endothelial" ) clf_tree <- hierarchyToClassificationTree(hierarchy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.