X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tree.h;h=03da5f6841d9f30cef2f946d6c9ecbc1d5c58cc0;hb=c7e8c2d15bd7cedcfdf18675cb0ea1a0dcd0e3c0;hp=0660e8a181632ae09668d1484236276e5898ed39;hpb=d2390ede25cc211f95f99e377d5654bad7e6950e;p=mothur.git diff --git a/tree.h b/tree.h index 0660e8a..03da5f6 100644 --- a/tree.h +++ b/tree.h @@ -24,6 +24,7 @@ public: TreeMap* getTreeMap() { return tmap; } void getCopy(Tree*); //makes tree a copy of the one passed in. + void getCopy(Tree* copy, map); //makes a copy of the tree structure passed in, (just parents, children and br). Used with the Tree(TreeMap*) constructor. Assumes the tmap already has set seqs groups you want. Used by subsample to reassign seqs you don't want included to group "doNotIncludeMe". void getSubTree(Tree*, vector); //makes tree a that contains only the names passed in. int getSubTree(Tree* originalToCopy, vector seqToInclude, map nameMap); //used with (int, TreeMap) constructor. SeqsToInclude contains subsample wanted - assumes these are unique seqs and size of vector=numLeaves passed into constructor. nameMap is unique -> redundantList can be empty if no namesfile was provided.