X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=pintail.h;h=92c399889c3be0aa0e552fe296612eb336bc8168;hp=2364c86c6bab6d779cb13131245d626244777895;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=9c23307c583d4e8595f75278c13e708788f2f058 diff --git a/pintail.h b/pintail.h index 2364c86..92c3998 100644 --- a/pintail.h +++ b/pintail.h @@ -24,22 +24,25 @@ class Pintail : public Chimera { public: - Pintail(string, string); + Pintail(string, string, bool, int, string, string, string, int, int, string); //fastafile, templatefile, filter, processors, mask, conservation, quantile, window, increment, outputDir) ~Pintail(); int getChimeras(Sequence*); - void print(ostream&, ostream&); + Sequence print(ostream&, ostream&); void setCons(string c) { consfile = c; } void setQuantiles(string q) { quanfile = q; } + #ifdef USE_MPI + Sequence print(MPI_File&, MPI_File&); + #endif private: Dist* distcalculator; DeCalculator* decalc; - int iters; - string fastafile, consfile; + int iters, window, increment, processors; + string fastafile, quanfile, consfile; vector templateLines; Sequence* querySeq; @@ -52,7 +55,7 @@ class Pintail : public Chimera { vector windowsForeachQuery; // windowsForeachQuery is a vector containing the starting spot in query aligned sequence for each window. //this is needed so you can move by bases and not just spots in the alignment - int windowSizes; //windowSizes = window size of query + int windowSizes; //windowSizes = window size of query vector windowSizesTemplate; //windowSizesTemplate[0] = window size of templateSeqs[0] map trimmed; //trimmed = start and stop of trimmed sequences for query @@ -63,16 +66,17 @@ class Pintail : public Chimera { float DE; //DE is the deviaation for query vector probabilityProfile; vector< vector > quantiles; //quantiles[0] is the vector of deviations with ceiling score of 1, quantiles[1] is the vector of deviations with ceiling score of 2... - vector< vector > quantilesMembers; //quantiles[0] is the vector of deviations with ceiling score of 1, quantiles[1] is the vector of deviations with ceiling score of 2... + vector< vector > quantilesMembers; //quantiles[0] is the vector of deviations with ceiling score of 1, quantiles[1] is the vector of deviations with ceiling score of 2... set h; string mergedFilterString; - + vector< vector > readQuantiles(); vector readFreq(); Sequence* findPairs(Sequence*); void createProcessesQuan(); - void doPrep(); + int doPrep(); + void printQuanFile(string, string); };