]> git.donarmstrong.com Git - mothur.git/blobdiff - seqerrorcommand.h
added sequence name to error string in fastq.info. Changed np_shannon to npshannon.
[mothur.git] / seqerrorcommand.h
index e467df11c99d735a482328c7dbe64aa623192a95..cc904ec7f246aed91970b41cf52e39b7d32b896b 100644 (file)
@@ -13,6 +13,7 @@
 #include "mothur.h"
 #include "command.hpp"
 #include "sequence.hpp"
+#include "referencedb.h"
 
 struct Compare {
        int AA, AT, AG, AC,     TA, TT, TG, TC, GA, GT, GG, GC, CA, CT, CG, CC, NA, NT, NG, NC, Ai, Ti, Gi, Ci, Ni, dA, dT, dG, dC;
@@ -58,11 +59,12 @@ public:
        
 private:
        bool abort;
+       ReferenceDB* rdb;
        
        struct linePair {
-               unsigned long int start;
-               unsigned long int end;
-               linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
+               unsigned long long start;
+               unsigned long long end;
+               linePair(unsigned long long i, unsigned long long j) : start(i), end(j) {}
        };
        
        vector<int> processIDS;   //processid
@@ -80,13 +82,13 @@ private:
        void printErrorQuality(map<char, vector<int> >);
        void printQualityFR(vector<vector<int> >, vector<vector<int> >);
        
-       int setLines(string, string, string, vector<unsigned long int>&, vector<unsigned long int>&, vector<unsigned long int>&);
+       int setLines(string, string, string, vector<unsigned long long>&, vector<unsigned long long>&, vector<unsigned long long>&);
        int driver(string, string, string, string, string, string, linePair, linePair, linePair);
        int createProcesses(string, string, string, string, string, string);
 
        string queryFileName, referenceFileName, qualFileName, reportFileName, namesFileName, outputDir;
        double threshold;
-       bool ignoreChimeras;
+       bool ignoreChimeras, save;
        int numRefs, processors;
        int maxLength, totalBases, totalMatches;
        //ofstream errorSummaryFile, errorSeqFile;