#include <stdlib.h>#include <stdio.h>#include <assert.h>#include "util.h"#include "log.h"#include "symmatrix.h"#include "muscle_tree.h"#include "muscle_upgma.h"| Defines | |
| #define | TRACE 0 | 
| #define | MIN(x, y) ((x) < (y) ? (x) : (y)) | 
| #define | MAX(x, y) ((x) > (y) ? (x) : (y)) | 
| #define | AVG(x, y) (((x) + (y))/2) | 
| Typedefs | |
| typedef unsigned long int | ulong | 
| typedef float | dist_t | 
| Functions | |
| ulong | TriangleSubscript (uint uIndex1, uint uIndex2) | 
| void | CalcDistRange (symmatrix_t *distmat, uint i, dist_t *row) | 
| void | MuscleUpgma2 (tree_t *tree, symmatrix_t *distmat, linkage_t linkage, char **names) | 
| Creates a UPGMA in O(N^2) tree from given distmat. | |
| #define AVG | ( | x, | |||
| y | ) | (((x) + (y))/2) | 
| #define MAX | ( | x, | |||
| y | ) | ((x) > (y) ? (x) : (y)) | 
| #define MIN | ( | x, | |||
| y | ) | ((x) < (y) ? (x) : (y)) | 
| #define TRACE 0 | 
| typedef float dist_t | 
| typedef unsigned long int ulong | 
| void CalcDistRange | ( | symmatrix_t * | distmat, | |
| uint | i, | |||
| dist_t * | row | |||
| ) | 
| void MuscleUpgma2 | ( | tree_t * | tree, | |
| symmatrix_t * | distmat, | |||
| linkage_t | linkage, | |||
| char ** | names | |||
| ) | 
Creates a UPGMA in O(N^2) tree from given distmat.
| [out] | tree | newly created rooted UPGMA tree | 
| [in] | distmat | distance matrix to be clustered | 
| [in] | linkage | linkage type | 
| [in] | names | leaf names, will be copied | 
left and right node indices, as well as left and right branch-length and height for for internal nodes
 1.6.3
 1.6.3