X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pintail.h;h=8c0dce4d4b802910cfad2f398871a9ba497bbe83;hb=dbd5da8043df1cb9f5ff7c6ddb5f550ea49b52c2;hp=289af65b68cb2f37ddf3c392cf9c67572dd5560b;hpb=2ad3477dcd6a01628712b32e767353f917f2a95a;p=mothur.git diff --git a/pintail.h b/pintail.h index 289af65..8c0dce4 100644 --- a/pintail.h +++ b/pintail.h @@ -38,6 +38,7 @@ class Pintail : public Chimera { int start; int end; linePair(int i, int j) : start(i), end(j) {} + linePair(){} }; Dist* distcalculator; @@ -45,6 +46,7 @@ class Pintail : public Chimera { string fastafile, templateFile, consfile, quanfile; vector lines; + vector templateLines; vector querySeqs; vector templateSeqs; @@ -53,10 +55,11 @@ class Pintail : public Chimera { vector< vector > obsDistance; //obsDistance[0] is the vector of observed distances for queryseqs[0]... vector< vector > expectedDistance; //expectedDistance[0] is the vector of expected distances for queryseqs[0]... vector deviation; //deviation[0] is the percentage of mismatched pairs over the whole seq between querySeqs[0] and its best match. - vector< vector > windows; // windows[0] is a vector containing the starting spot in queryseqs[0] aligned sequence for each window. + vector< vector > windowsForeachQuery; // windowsForeachQuery[0] is a vector containing the starting spot in queryseqs[0] aligned sequence for each window. //this is needed so you can move by bases and not just spots in the alignment - vector windowSizes; //windowSizes[0] = window size of querySeqs[0] + vector windowSizes; //windowSizes[0] = window size of querySeqs[0] + vector windowSizesTemplate; //windowSizesTemplate[0] = window size of templateSeqs[0] vector< map > trimmed; //trimmed[0] = start and stop of trimmed sequences for querySeqs[0] map::iterator it; @@ -67,14 +70,12 @@ class Pintail : public Chimera { 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 readSeqs(string); - map trimSeqs(Sequence*, Sequence, int); + void trimSeqs(Sequence*, Sequence, map&); vector readFreq(); vector< vector > readQuantiles(); vector< vector > getQuantiles(int, int); vector calcFreq(vector); - vector findPairs(int, int); vector findWindows(Sequence*, int, int, int&); vector calcObserved(Sequence*, Sequence, vector, int);