]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmap.h
changed file divide for trim.seqs
[mothur.git] / heatmap.h
index e236ce389795e00e20fce97cd645377e83657c1b..11c67eaf439ebe3adec4f40615e1380ca870e0b5 100644 (file)
--- a/heatmap.h
+++ b/heatmap.h
@@ -9,43 +9,53 @@
  *
  */
 
-using namespace std;
-
-#include "ordervector.hpp"
 #include "rabundvector.hpp"
 #include "sharedrabundvector.h"
-#include "sharedordervector.h"
 #include "datavector.hpp"
 #include "globaldata.hpp"
 
+/***********************************************************************/
+struct binCount {
+               int bin;
+               int abund;
+               binCount(int i, int j) : bin(i), abund(j) {}
+};
+/***********************************************************************/
+//sorts highest abund to lowest
+inline bool comparebinCounts(binCount left, binCount right){
+       return (left.abund > right.abund);      
+}
 /***********************************************************************/
 
 class HeatMap {
        
        public:
-               HeatMap();
+               HeatMap(string, string, int, int, string);
                ~HeatMap(){};
        
-               void getPic(OrderVector*);
-               void getPic(SharedOrderVector*);
+               string getPic(RAbundVector*);
+               string getPic(vector<SharedRAbundVector*>);
 
        private:
-               void getSharedVectors(SharedOrderVector*);
-               void sortSharedVectors();
-               
+               int sortSharedVectors(vector<SharedRAbundVector*>& );
+               void printLegend(int, float);
+
                GlobalData* globaldata;
-               vector<SharedRAbundVector*> lookup;
-               RAbundVector rabund;
-               string format, sorted, groupComb;
+               string format, sorted, groupComb, scaler, outputDir;
                ofstream outsvg;
-               map<int, string> colorScale;
-               map<int, string>::iterator it;
-
+               MothurOut* m;
+               int numOTU, fontSize;
+               
+               map<int, int> orderTopGroup(vector<SharedRAbundVector*>&);
+               map<int, int> orderTopOtu(vector<SharedRAbundVector*>&);
+               map<int, int> orderShared(vector<SharedRAbundVector*>&);
                        
 };
+
 /***********************************************************************/
 
 #endif
 
 
 
+