1 #ifndef Mothur_subsample_h
2 #define Mothur_subsample_h
8 // Created by Sarah Westcott on 4/2/12.
9 // Copyright (c) 2012 Schloss Lab. All rights reserved.
12 #include "mothurout.h"
13 #include "sharedrabundvector.h"
15 //subsampling overwrites the sharedRabunds. If you need to reuse the original use the getSamplePreserve function.
21 SubSample() { m = MothurOut::getInstance(); }
24 vector<string> getSample(vector<SharedRAbundVector*>&, int); //returns the bin labels for the subsample, mothurOuts binlabels are preserved so you can run this multiple times.
26 vector<SharedRAbundVector*> getSamplePreserve(vector<SharedRAbundVector*>&, vector<string>&, int);
31 int eliminateZeroOTUS(vector<SharedRAbundVector*>&);