]> git.donarmstrong.com Git - mothur.git/blob - splitabundcommand.h
added split.abund comand
[mothur.git] / splitabundcommand.h
1 #ifndef SPLITABUNDCOMMAND_H
2 #define SPLITABUNDCOMMAND_H
3
4 /*
5  *  splitabundcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 5/17/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 /* split.abund - given a list or name file and a number (cutoff), make two files - *rare* and *abund* 
15 - where rare has data for otus that have fewer sequences than the cutoff and abund has data for otus 
16 that have as many or more sequences as the cutoff. 
17 also allow an option where a user can give a group file with the list or names file and split the group file into rare and abund. */
18
19
20 #include "command.hpp"
21 #include "groupmap.h"
22 #include "inputdata.h"
23 #include "listvector.hpp"
24
25 /***************************************************************************************/
26
27 class SplitAbundCommand : public Command {
28         
29 public:
30         SplitAbundCommand(string);      
31         ~SplitAbundCommand();
32         int execute();  
33         void help();
34
35         
36 private:
37         int split(ListVector*);
38         int split(); //namefile
39         
40         vector<string> outputNames;
41         ListVector* list;
42         GroupMap* groupMap;
43         InputData* input;
44         
45         string outputDir, listfile, namefile, groupfile, label;
46         set<string> labels;
47         bool abort, allLines, accnos, wroteRareList, wroteAbundList;
48         int cutoff;
49         
50         
51
52 };
53
54 /***************************************************************************************/
55
56 #endif
57
58