 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
21 "Usage: btree [options] tree.ph tree.ps",
22 "--------------------------------------",
23 "Draws phylogenetic trees as postscript.",
24 "Handles phylip format trees as input.",
27 "-verbose 7 Verbosity of output.",
28 "-scale 350 Scale for postscript output (default 200).",
29 "-rotate 110 Rotate for postscript output (default 0 degrees).",
34 int main(
int argc,
char** argv)
43 for ( curropt = option; curropt; curropt = curropt->
next ) {
44 if ( curropt->
tag ==
"scale" )
45 if ( ( scale = curropt->
value.
real() ) < 0.0001 )
46 cerr <<
"-scale: A scale must be specified" << endl;
47 if ( curropt->
tag ==
"rotate" ) {
48 if ( ( angle = curropt->
value.
real() ) < 1 )
49 cerr <<
"-rotate: An angle must be specified" << endl;
63 if ( optind < argc ) {
64 output = argv[optind];
A class for a command line input option.
int bexit(int value)
Exit function for cleanup and debugging.
Boption * get_option_list(const char *use[], int argc, char *argv[], int &optind)
Parses command line arguments based on a template.
Header file for option handlers.
int ps_draw_tree(Bstring &filename, Bnode *root, float scale)
Draws a tree into a postscript file.
Utilities for timing functions.
Header file for writing a tree into a postcsript file.
double timer_start()
Starts timer and prints the time.
Header file for general utilities.
double timer_report(double lasttime)
Reports the time elapsed since a given time.
int main(int argc, char **argv)
Header file for reading (and writing) trees.
int option_kill(Boption *option)
Deallocates a linked list of option structures.
int tree_rotate(Bnode *node, float angle)
Adds an angle to all nodes.
Bnode * read_tree(char *filename)
Reads a phylip format tree file.
int tree_delete_node(Bnode *node)
Deletes a node with all daughter nodes.