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 #ifndef LABELTRANSLATOR_H
19 #include "LabelTranslator.h"
20 #endif
21 
22 #define DEFAULT_BRANCH_LENGTH_MARKER -1000.0 // tree-edges w/o length are marked with this value during read and corrected in TREE_scale
24 void TREE_scale(TreeNode *tree, double length_scale, double bootstrap_scale, WarningConsumer warn); // Note: auto-called by TREE_load + TREE_load_to_db
25 
26 TreeNode *TREE_load(const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr);
27 GB_ERROR TREE_load_to_db(GBDATA *gb_main, const char *treefile, const char *tree_name, const LabelTranslator& translator);
28 
29 #else
30 #error TreeRead.h included twice
31 #endif // TREEREAD_H
const char * GB_ERROR
Definition: arb_core.h:25
bool is_marked_as_default_len(GBT_LEN len)
Definition: TreeRead.h:23
void TREE_scale(TreeNode *tree, double length_scale, double bootstrap_scale, WarningConsumer warn)
Definition: TreeTools.cxx:14
#define DEFAULT_BRANCH_LENGTH_MARKER
Definition: TreeRead.h:22
TreeNode * TREE_load(const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr)
Definition: TreeRead.cxx:734
float GBT_LEN
Definition: arbdb_base.h:34
GB_ERROR TREE_load_to_db(GBDATA *gb_main, const char *treefile, const char *tree_name, const LabelTranslator &translator)
Definition: TreeRead.cxx:847
GBDATA * gb_main
Definition: adname.cxx:32
void(* WarningConsumer)(const char *message)
Definition: arbdbt.h:84