1 #ifndef ALGO_COBALT___TREE__HPP
2 #define ALGO_COBALT___TREE__HPP
68 : node(
n), distance(d) {}
82 : query_idx(q), distance(d) {}
96 bool use_fastme =
false)
99 ComputeTree(distances, use_fastme);
113 bool use_fastme =
false);
151 vector<STreeLeaf>& node_list,
152 double curr_dist = 0);
163 vector<STreeEdge>& edge_list,
Definitions used by all COBALT aligner components.
definition of a Culling tree
A wrapper for controlling access to the phylogenetic tree generated by CDistMethods.
void SetTree(TPhyTreeNode *tree)
Set tree.
~CTree()
Destructor (deletes generated tree)
CTree(const CDistMethods::TMatrix &distances, bool use_fastme=false)
Constructor: build a tree.
TPhyTreeNode * GetTree()
Access the current tree.
const TPhyTreeNode * GetTree() const
Access the current tree.
CTree()
Make an empty tree.
TPhyTreeNode * ReleaseTree()
Get the current tree and release ownership.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_COBALT_EXPORT
Interface for CHitList class.
Interface for CSequence class.
Structure for listing tree edges.
double distance
length of this edge
STreeEdge(const TPhyTreeNode *n, double d)
Initialize an edge.
const TPhyTreeNode * node
pointer to this edge in the tree
Structure for listing tree leaves.
double distance
Length of path to this leaf.
int query_idx
Ordinal ID of the sequence at leaf.
STreeLeaf(int q, double d)
Initialize an edge.