ARB
TreeRead.h
Go to the documentation of this file.
1 // ============================================================ //
2 // //
3 // File : TreeRead.h //
4 // Purpose : //
5 // //
6 // Coded by Ralf Westram (coder@reallysoft.de) in June 2009 //
7 // Institute of Microbiology (Technical University Munich) //
8 // www.arb-home.de //
9 // //
10 // ============================================================ //
11 
12 #ifndef TREEREAD_H
13 #define TREEREAD_H
14 
15 #ifndef ARBDBT_H
16 #include <arbdbt.h>
17 #endif
18 
19 #define DEFAULT_BRANCH_LENGTH_MARKER -1000.0 // tree-edges w/o length are marked with this value during read and corrected in TREE_scale
21 void TREE_scale(TreeNode *tree, double length_scale, double bootstrap_scale); // Note: auto-called by TREE_load + TREE_load_to_db
22 
23 TreeNode *TREE_load(const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr);
24 GB_ERROR TREE_load_to_db(GBDATA *gb_main, const char *treefile, const char *tree_name);
25 
26 #else
27 #error TreeRead.h included twice
28 #endif // TREEREAD_H
const char * GB_ERROR
Definition: arb_core.h:25
void TREE_scale(TreeNode *tree, double length_scale, double bootstrap_scale)
Definition: TreeTools.cxx:14
bool is_marked_as_default_len(GBT_LEN len)
Definition: TreeRead.h:20
GB_ERROR TREE_load_to_db(GBDATA *gb_main, const char *treefile, const char *tree_name)
Definition: TreeRead.cxx:712
#define DEFAULT_BRANCH_LENGTH_MARKER
Definition: TreeRead.h:19
TreeNode * TREE_load(const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr)
Definition: TreeRead.cxx:631
float GBT_LEN
Definition: arbdb_base.h:34
GBDATA * gb_main
Definition: adname.cxx:33