newick {ccfindR} | R Documentation

## Generate Newick format tree string from tree list object

### Description

Generate Newick format tree string from tree list object

### Usage

    newick(tree, parent = "1.1", string = "")

### Arguments

`tree` | Tree list object from `build_tree`
`parent` | Parent ID
`string` | Newick string of parent tree

### Value

String of newick tree

### 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)
    nw <- newick(tree=tree)
    nw

[Package ccfindR version 1.14.0 Index]