Navigation Banner
 

PSTreeString Built-in function
  Returns a string containing a post script rendering of the tree. The length of the branches can be scaled on any model parameter (if it is defined for all branches), or left unscaled (all branches have equal length). The command also takes a page size parameter.
Syntax  res = PSTreeString(tree_ident, parameter_name, page_size);
Notes 'parameter_name' must be either an empty string (branches have equal lengths) or a parameter name (e.g. "mu"), if that parameter is defined for every branch. Two special values are also allowed:
- "EXPECTED_NUMBER_OF_SUBSTITUTIONS" scales the tree on the expected number of substitution per site, assuming there is a model attached to every branch of the tree;
- "STRING_SUPPLIED_LENGTHS" scales the tree on the lengths provided in the Newick string itself (assuming there are some).

The page size parameter is a 1x2 matrix which defines the width (first entry) and the height (second entry) of the page in points. 1 point = 1/72 of an inch. If page_size = {{0,0}}, the size of the page is set to 8x11 inches (US Letter size).

The output of the command is PostScript code which should be saved to a file and later rendered by a PS viewer program or sent to a PS printer.

Examples
Tree tr = ((1,2),3,4);
pString = PSTreeString (tr,"",{{200,200}});
fprintf ("outfile.ps",pString);
 Last modified: 8/14/2002

 
Sergei L. Kosakovsky Pond and Spencer V. Muse, 1997-2002