X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=subsample.h;h=feca37eddbfbf42cd4d7674adea5a18ceed3acee;hp=ef5c389a938820a61201d83629efc6b27c5237d8;hb=72e0be6b9c80009d4dbee24e8d690ad9514dc6fb;hpb=94d43af803e4be78b2ba8049669504e854ad13be diff --git a/subsample.h b/subsample.h index ef5c389..feca37e 100644 --- a/subsample.h +++ b/subsample.h @@ -25,8 +25,8 @@ 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. + //Tree* getSample(Tree*, TreeMap*, map, int); //creates new subsampled tree, destroys treemap so copy if needed. + Tree* getSample(Tree*, TreeMap*, TreeMap*, int, map); //creates new subsampled tree. Uses first treemap to fill new treemap with sabsampled seqs. Sets groups of seqs not in subsample to "doNotIncludeMe". private: @@ -35,6 +35,7 @@ class SubSample { vector getSample(TreeMap*, vector); vector getSample(TreeMap*, int); //names of seqs to include in sample tree + vector getSample(TreeMap* tMap, int size, map >& sample); //sample maps group -> seqs in group. seqs not in sample are in doNotIncludeMe group 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.