]> git.donarmstrong.com Git - mothur.git/blob - normalizesharedcommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / normalizesharedcommand.h
1 #ifndef NORMALIZESHAREDCOMMAND_H
2 #define NORMALIZESHAREDCOMMAND_H
3
4 /*
5  *  normalizesharedcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/15/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "inputdata.h"
15 #include "sharedrabundvector.h"
16
17 class NormalizeSharedCommand : public Command {
18
19 public:
20         NormalizeSharedCommand(string);
21         NormalizeSharedCommand();
22         ~NormalizeSharedCommand() {}
23         
24         vector<string> setParameters();
25         string getCommandName()                 { return "normalize.shared";            }
26         string getCommandCategory()             { return "OTU-Based Approaches";        }
27         string getHelpString(); 
28         
29         int execute(); 
30         void help() { m->mothurOut(getHelpString()); }  
31         
32         
33 private:
34         InputData* input;
35         vector<SharedRAbundVector*> lookup;
36         vector<SharedRAbundFloatVector*> lookupFloat;
37         
38         bool abort, allLines, pickedGroups, makeRelabund;
39         set<string> labels; //holds labels to be used
40         string groups, label, outputDir, method, sharedfile, relabundfile, format, inputfile;
41         int norm;
42         vector<string> Groups, outputNames;
43                 
44         int normalize(vector<SharedRAbundVector*>&, ofstream&);
45         int normalize(vector<SharedRAbundFloatVector*>&, ofstream&);
46         int eliminateZeroOTUS(vector<SharedRAbundVector*>&);
47         int eliminateZeroOTUS(vector<SharedRAbundFloatVector*>&);
48
49 };
50
51 #endif
52