]> git.donarmstrong.com Git - mothur.git/blob - countseqscommand.h
made make.table alias to count.seqs command. added large parameter to count.seqs...
[mothur.git] / countseqscommand.h
1 #ifndef COuNTSEQSCOMMAND_H
2 #define COuNTSEQSCOMMAND_H
3
4 /*
5  *  countseqscommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 6/1/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14
15 class CountSeqsCommand : public Command {
16         
17 public:
18         
19         CountSeqsCommand(string);
20         CountSeqsCommand();     
21         ~CountSeqsCommand(){}
22         
23         vector<string> setParameters();
24         string getCommandName()                 { return "count.seqs";                          }
25         string getCommandCategory()             { return "Sequence Processing";         }
26         string getOutputFileNameTag(string, string);
27         string getHelpString(); 
28         string getCitation() { return "http://www.mothur.org/wiki/Count.seqs"; }
29         string getDescription()         { return "counts the number of sequences represented by each unique sequence in a namesfile"; }
30
31         int execute(); 
32         void help() { m->mothurOut(getHelpString()); }  
33         
34         
35 private:
36         string namefile, groupfile, outputDir, groups;
37         bool abort, large;
38         vector<string> Groups, outputNames;
39     
40     int processSmall(string);
41     int processLarge(string);
42     map<int, string> processNameFile(string);
43     map<int, string> getGroupNames(string, set<string>&);
44     
45 };
46
47 #endif
48
49