]> git.donarmstrong.com Git - mothur.git/blobdiff - metastatscommand.h
changes while testing
[mothur.git] / metastatscommand.h
index 2c5c80cd863760f56d7f7653d49a713559c84821..12e0aebbe2d6a61409f5f749aba4a23db2841b31 100644 (file)
@@ -25,7 +25,9 @@ public:
        vector<string> setParameters();
        string getCommandName()                 { return "metastats";                           }
        string getCommandCategory()             { return "OTU-Based Approaches";        }
+       
        string getHelpString(); 
+    string getOutputPattern(string);   
        string getCitation() { return "White JR, Nagarajan N, Pop M (2009). Statistical methods for detecting differentially abundant features in clinical metagenomic samples. PLoS Comput Biol 5: e1000352. \nhttp://www.mothur.org/wiki/Metastats"; }
        string getDescription()         { return "detects differentially abundant features in clinical metagenomic samples"; }
 
@@ -66,7 +68,7 @@ struct metastatsData {
     vector<string> designMapGroups;
     vector<string> outputNames;
        int start;
-       int num, iters;
+       int num, iters, count;
        float threshold;
        MothurOut* m;
        string sharedfile;
@@ -84,10 +86,11 @@ struct metastatsData {
         designMapGroups = dg;
         iters = i;
         threshold = thr;
+        count=0;
        }
 };
 /**************************************************************************************************/
-#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
 #else
 static DWORD WINAPI MyMetastatsThreadFunction(LPVOID lpParam){ 
        metastatsData* pDataArray;
@@ -97,7 +100,7 @@ static DWORD WINAPI MyMetastatsThreadFunction(LPVOID lpParam){
                
         //for each combo
                for (int c = pDataArray->start; c < (pDataArray->start+pDataArray->num); c++) {
-                       
+                       pDataArray->count++;
                        //get set names
                        string setA = pDataArray->namesOfGroupCombos[c][0]; 
                        string setB = pDataArray->namesOfGroupCombos[c][1];