]> git.donarmstrong.com Git - mothur.git/blob - libshuffcommand.h
working on libshuff
[mothur.git] / libshuffcommand.h
1 #ifndef LIBSHUFFCOMMAND_H
2 #define LIBSHUFFCOMMAND_H
3
4 /*
5  *  libshuffcommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 3/9/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14 #include "coverage.h"
15 #include "fullmatrix.h"
16
17 using namespace std;
18
19 class GlobalData;
20
21 class LibShuffCommand : public Command {
22         
23         public:
24                 LibShuffCommand();      
25                 ~LibShuffCommand();
26                 int execute();  
27         
28         private:
29                 vector< vector<float> > cValues; // vector of coverage scores, one for each comparison.
30                 vector<float> deltaValues; // vector of delta scores, one for each comparison.
31                 vector<float> sumDelta; //sum of delta scores, one for each comparison.
32                 vector<float> sumDeltaSig; //number of random  matrixes with that delta value or ??
33                 vector< vector<float> > rsumDelta; //vector< vector<sumdelta scores for a given comparison> >
34                 vector<string> groupComb;
35                 
36                 
37                 void setGroups();
38                 int findIndex(float, int);
39                 void printCoverageFile(float);
40                 void printSummaryFile();
41
42                 GlobalData* globaldata;
43                 Coverage* coverage;
44                 FullMatrix* matrix;
45                 float cutOff;
46                 int numGroups, numComp, iters;
47                 string coverageFile, summaryFile;
48                 ofstream out, outSum;
49                                 
50                 
51 };
52
53 #endif