rename_tips: Rename tips of trees with cell types

Description Usage Arguments Value Examples

View source: R/tree.R

Description

Rename tips of trees with cell types

Usage

1
rename_tips(tree, rank, tip.labels)

Arguments

tree

List containing tree

rank

Rank value of which tip names are to be replaced

tip.labels

Vector of new names for tips

Value

List containing tree with updated tip labels

Examples

1
2
3
4
5
6
7
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 

hjunwoo/ccfindR documentation built on Oct. 4, 2019, 10:31 a.m.