7 * Created by Sarah Westcott on 3/25/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 #include "rabundvector.hpp"
13 #include "sharedrabundvector.h"
14 #include "sharedrabundfloatvector.h"
15 #include "datavector.hpp"
16 #include "globaldata.hpp"
18 /***********************************************************************/
22 binCount(int i, int j) : bin(i), abund(j) {}
24 /***********************************************************************/
25 struct binCountFloat {
28 binCountFloat(int i, float j) : bin(i), abund(j) {}
31 /***********************************************************************/
32 //sorts highest abund to lowest
33 inline bool comparebinCounts(binCount left, binCount right){
34 return (left.abund > right.abund);
36 /***********************************************************************/
37 //sorts highest abund to lowest
38 inline bool comparebinFloatCounts(binCountFloat left, binCountFloat right){
39 return (left.abund > right.abund);
41 /***********************************************************************/
46 HeatMap(string, string, int, int, string);
49 string getPic(RAbundVector*);
50 string getPic(vector<SharedRAbundVector*>);
51 string getPic(vector<SharedRAbundFloatVector*>);
54 int sortSharedVectors(vector<SharedRAbundVector*>& );
55 int sortSharedVectors(vector<SharedRAbundFloatVector*>& );
56 int sortRabund(RAbundVector*&);
57 void printLegend(int, float);
59 GlobalData* globaldata;
60 string format, sorted, groupComb, scaler, outputDir;
65 map<int, int> orderTopGroup(vector<SharedRAbundVector*>&);
66 map<int, int> orderTopOtu(vector<SharedRAbundVector*>&);
67 map<int, int> orderShared(vector<SharedRAbundVector*>&);
68 map<int, int> orderTopGroup(vector<SharedRAbundFloatVector*>&);
69 map<int, int> orderTopOtu(vector<SharedRAbundFloatVector*>&);
70 map<int, int> orderShared(vector<SharedRAbundFloatVector*>&);
75 /***********************************************************************/