Learn R Programming

treeman (version 1.1.4)

readTrmn: Read a .trmn tree

Description

Return a TreeMan or TreeMen object from a .trmn treefile

Usage

readTrmn(file, wndmtrx = FALSE, parallel = FALSE, progress = "none")

Arguments

file

file path

wndmtrx

T/F add node matrix? Default FALSE.

parallel

logical, make parallel?

progress

name of the progress bar to use, see create_progress_bar

Details

Read a tree(s) from a 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

writeTrmn, readTree,writeTree, randTree, saveTreeMan, loadTreeMan

Examples

Run this code
# NOT RUN {
library(treeman)
tree <- randTree(10)
writeTrmn(tree, file='test.trmn')
tree <- readTrmn('test.trmn')
file.remove('test.trmn')
# }

Run the code above in your browser using DataLab