View source: R/extract_hrchy_string.R
extract_hrchy_string | R Documentation |
Parse an input string by extracting parent-children relationship.
extract_hrchy_string(input_string, special_character = "@", plot = T)
input_string |
An input string with nested labeled parentheses that characterizes hierarchy of annotated cell types. Avoid using comma (','), parentheses ('()') and special character (e.g.'@') in celltype names. |
special_character |
A character denotes non-leaf node (including root node and internal nodes). |
plot |
Plot tree structure or not. |
A list of hierarchy information:
edges: a data frame that documents that parent-children relationship.
layout: a data frame that contains id, xy coordiates, label and a leaf indicator for each node.
immediate_children: a data frame that captures immediate children for each node.
leaves_info: a data frame that summarizes leaf children for each node.
Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji
input_string = '@T(@CD4+(CD4_c1,CD4_c2),@CD8+(CD8_c1,CD8_c2))'
extract_hrchy_string(input_string, special_character = '@')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.