]> git.donarmstrong.com Git - mothur.git/blobdiff - collectdisplay.h
added fasta, qfile, trim, accnos and sfftxt parameter to sffinfo command. added...
[mothur.git] / collectdisplay.h
index 0f18da6277853059464b1902aeb81b92a3facae1..d33efe9792332902559d4a600bc3c5581b557185 100644 (file)
@@ -15,6 +15,8 @@ class CollectDisplay : public Display {
 public:
        CollectDisplay(Calculator* calc, FileOutput* file) : estimate(calc), output(file) {timesCalled = 0;};
        ~CollectDisplay()       {       delete estimate; delete output;         }
+       
+       
        void update(SAbundVector* rank){
                nSeqs=rank->getNumSeqs();
                data = estimate->getValues(rank);
@@ -45,7 +47,7 @@ public:
                        n++;
                }
                
-               if (estimate->getMultiple() == true) { 
+               if ((estimate->getMultiple() == true) && all) { 
                        numGroupComb++; 
                        groupData.resize((numGroupComb*data.size()), 0);
                        //is this the time its called with all values
@@ -70,14 +72,23 @@ public:
                        output->output(numSeqs, groupData);     
                }
        };
-       
+                                                                       
        void init(string s)             {       output->initFile(s);    };
        void reset()                    {       output->resetFile();    };
        void close()                    {       output->resetFile();    };
-       bool isCalcMultiple() { return estimate->getMultiple(); }
+       void setAll(bool a)             {       all = a;                                }
+       bool getAll()                   {       return all;                             }
+       
+       
+       bool isCalcMultiple()   { return estimate->getMultiple(); }
+       bool hasLciHci()        {
+               if (estimate->getCols() == 3) { return true; } 
+               else{ return false; } 
+       }
        
        string getName()        {  return estimate->getName();  }
-
+       
+       
 private:
        
        Calculator* estimate;
@@ -85,6 +96,8 @@ private:
        int nSeqs, timesCalled, numGroupComb;
        vector<double> data;
        vector<double> groupData;
+       bool all;
+       
 };
 
 /***********************************************************************/