rename_tips {ccfindR} | R Documentation |
Rename tips of trees with cell types
rename_tips(tree, rank, tip.labels)
tree |
List containing tree |
rank |
Rank value of which tip names are to be replaced |
tip.labels |
Vector of new names for tips |
List containing tree with updated tip labels
set.seed(1) x <- simulate_whx(nrow=50,ncol=100,rank=5) s <- scNMFSet(x$x) s <- vb_factorize(s,ranks=seq(2,8),nrun=5) tree <- build_tree(s,rmax=5) tree <- rename_tips(tree,rank=5,tip.labels=letters[seq_len(5)]) tree