![]() |
Bsoft 2.1.4
Bernard's software package
|
Functions for reading (and writing) trees. More...
Functions | |
Bnode * | read_tree (char *filename) |
Reads a phylip format tree file. More... | |
Bnode * | tree_read_node (char **handle, Bnode *one) |
Reads a node into a tree structure. More... | |
int | tree_calculate_angle (Bnode *node, int *itip, float tip_angle) |
Calculates an angle for each node for plotting. More... | |
int | tree_delete_node (Bnode *node) |
Deletes a node with all daughter nodes. More... | |
int | tree_rotate (Bnode *node, float angle) |
Adds an angle to all nodes. More... | |
int | tree_show (Bnode *node) |
Shows a node with all daughter nodes. More... | |
Variables | |
int | verbose |
Functions for reading (and writing) trees.
Bnode * read_tree | ( | char * | filename | ) |
Reads a phylip format tree file.
Reads the tree file using a recursive approach.
*filename | tree file name. |
int tree_calculate_angle | ( | Bnode * | node, |
int * | itip, | ||
float | tip_angle | ||
) |
Calculates an angle for each node for plotting.
*node | node. |
*itip | the number of tip nodes passed. |
tip_angle | the angular increment for each tip node. |
int tree_delete_node | ( | Bnode * | node | ) |
Deletes a node with all daughter nodes.
*node | node. |
Reads a node into a tree structure.
**handle | pointer to the buffer holding the phylip format tree. |
*one | one node. |
int tree_rotate | ( | Bnode * | node, |
float | angle | ||
) |
Adds an angle to all nodes.
The angle must be specified in radians.
*node | node. |
angle | rotation angle (radians). |
int tree_show | ( | Bnode * | node | ) |
Shows a node with all daughter nodes.
*node | node. |
|
extern |