X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=decalc.h;h=d1daf050e004333228e39fb5aaa7621dd1b0bcf6;hp=da0f96cd72b69acf3350a1565f66e7586644ff12;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=f7fbd74ffedcf62217109c22e828453eaefa1458 diff --git a/decalc.h b/decalc.h index da0f96c..d1daf05 100644 --- a/decalc.h +++ b/decalc.h @@ -14,7 +14,7 @@ /***********************************************************************/ -//This class was created using the algorythms described in the +//This class was created using the algorithms described in the // "At Least 1 in 20 16S rRNA Sequence Records Currently Held in the Public Repositories is Estimated To Contain Substantial Anomalies" paper //by Kevin E. Ashelford 1, Nadia A. Chuzhanova 3, John C. Fry 1, Antonia J. Jones 2 and Andrew J. Weightman 1. @@ -36,15 +36,18 @@ class DeCalculator { public: - DeCalculator() {}; + DeCalculator() { m = MothurOut::getInstance(); } ~DeCalculator() {}; + vector findClosest(Sequence, vector&, vector&, int, int); //takes querySeq, a reference db, filteredRefDB, numWanted, minSim + Sequence* findClosest(Sequence*, vector); set getPos() { return h; } void setMask(string); void setAlignmentLength(int l) { alignLength = l; } void runMask(Sequence*); void trimSeqs(Sequence*, Sequence*, map&); - void removeObviousOutliers(vector< vector >&, int); + map trimSeqs(Sequence&, vector&); + void removeObviousOutliers(vector< vector >&, int); vector calcFreq(vector, string); vector findWindows(Sequence*, int, int, int&, int); vector calcObserved(Sequence*, Sequence*, vector, int); @@ -53,10 +56,12 @@ class DeCalculator { float calcDE(vector, vector); float calcDist(Sequence*, Sequence*, int, int); float getCoef(vector, vector); - vector< vector > getQuantiles(vector, vector, int, vector, int, int, int); + vector< vector > getQuantiles(vector, vector, int, vector, int, int, int); vector returnObviousOutliers(vector< vector >, int); + map getMaskMap() { return maskMap; } + private: //vector sortContrib(map); //used by mallard float findAverage(vector); @@ -65,6 +70,8 @@ class DeCalculator { string seqMask; set h; int alignLength; + map maskMap; + MothurOut* m; };