phytreewrite

Write phylogenetic tree object to Newick formatted file

Syntax

phytreewrite('File', Tree)
phytreewrite(Tree)

Arguments

File

Newick formatted file. Enter either a filename or a path and filename supported by your operating system (ASCII text file).

TreePhylogenetic tree object. Tree must be an object created with either the function phytree (phytree) or imported using the function phytreeread.

Description

phytreewrite('File', Tree) copies the contents of a phytree object from the MATLAB workspace to a file. Data in the file uses the Newick format for describing trees.

The NEWICK tree format can be found at

http://evolution.genetics.washington.edu/
       phylip/newicktree.html

phytreewrite(Tree) opens the Save Phylogenetic tree as dialog box for you to enter or select a filename.

Examples

Read tree data from a Newick formatted file.

tr = phytreeread('pf00002.tree')

Remove all the 'mouse' proteins

ind = getbyname(tr,'mouse');
tr = prune(tr,ind);
view(tr)

Write pruned tree data to a file.

phytreewrite('newtree.tree', tr)

See Also

Bioinformatics Toolbox functions phytreeread, phytreetool, seqlinkage, and the phytree object methods phytree (phytree),


© 1994-2005 The MathWorks, Inc.