| Bioinformatics Toolbox | ![]() |
Write phylogenetic tree object to Newick formatted file
phytreewrite('File', Tree)
phytreewrite(Tree)
File | Newick formatted file. Enter either a filename or a path and filename supported by your operating system (ASCII text file). |
| Tree | Phylogenetic tree object. Tree must be an object created with either the function phytree (phytree) or imported using the function phytreeread. |
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.
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)
Bioinformatics Toolbox functions phytreeread, phytreetool, seqlinkage, and the phytree object methods phytree (phytree),
| phytreetool | pirread | ![]() |
© 1994-2005 The MathWorks, Inc.