| Line | |
|---|
| 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 |
|---|
| 20 | inline bool is_marked_as_default_len(GBT_LEN len) { return len <= DEFAULT_BRANCH_LENGTH_MARKER; } |
|---|
| 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 |
|---|
Note: See
TracBrowser
for help on using the repository browser.