R: Write a .trmn tree

writeTrmn {treeman} | R Documentation

## Write a .trmn tree

### Description

Write to disk a `TreeMan` or `TreeMan` object using the .trmn treefile

### Usage

    writeTrmn(tree, file)

### Arguments

`tree` | TreeMan object or TreeMen object
`file` | file path

### Details

Write a tree(s) to file using the .trmn format. It is faster to read and write tree files using treeman with the .trmn file format. In addition it is possible to encode more information than possible with the Newick, e.g. any taxonomic information and additional slot names added to the tree are recorded in the file.

### See Also

`readTrmn`, `readTree`,`writeTree`, `randTree`, `saveTreeMan`, `loadTreeMan`

### Examples

    library(treeman)
    tree <- randTree(10)
    writeTrmn(tree, file='test.trmn')
    tree <- readTrmn('test.trmn')
    file.remove('test.trmn')

[Package treeman version 1.1.4 Index]