X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=subsample.h;h=ef5c389a938820a61201d83629efc6b27c5237d8;hp=aaf52447b026127b27141bb8794a77a80f60c7f4;hb=e98d56be8369a799e61a411bc13d3bd1fa3451e5;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc diff --git a/subsample.h b/subsample.h index aaf5244..ef5c389 100644 --- a/subsample.h +++ b/subsample.h @@ -26,13 +26,15 @@ class SubSample { vector getSample(vector&, int); //returns the bin labels for the subsample, mothurOuts binlabels are preserved so you can run this multiple times. Overwrites original vector passed in, if you need to preserve it deep copy first. Tree* getSample(Tree*, TreeMap*, map, int); //creates new subsampled tree, destroys treemap so copy if needed. + Tree* getSample(Tree*, TreeMap*, map, int, map); //creates new subsampled tree, destroys treemap so copy if needed. private: MothurOut* m; int eliminateZeroOTUS(vector&); - vector getSample(TreeMap*, int); //returns map contains names of seqs in subsample -> group. + vector getSample(TreeMap*, vector); + vector getSample(TreeMap*, int); //names of seqs to include in sample tree map deconvolute(map wholeSet, vector& subsampleWanted); //returns new nameMap containing only subsampled names, and removes redundants from subsampled wanted because it makes the new nameMap.