rename_tips {ccfindR} | R Documentation

## Rename tips of trees with cell types

### Description

Rename tips of trees with cell types

### Usage

    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

    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

[Package ccfindR version 1.12.0 Index]