]> git.donarmstrong.com Git - mothur.git/blob - secondarystructurecommand.h
added citation function to commands
[mothur.git] / secondarystructurecommand.h
1 #ifndef SECONDARYSTRUCTURECHECKERCOMMAND_H
2 #define SECONDARYSTRUCTURECHECKERCOMMAND_H
3
4 /*
5  *  secondarystructurecommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/18/09.
9  *  Copyright 2009 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14
15 /**************************************************************************************************/
16
17 struct statData {
18         int pound;
19         int tilde;
20         int dash;
21         int plus;
22         int equal;
23         int loop;
24         int total;
25         statData() : pound(0), loop(0), tilde(0), dash(0), plus(0), equal(0), total(0) {};      
26 };
27
28 /**************************************************************************************************/
29
30
31 class AlignCheckCommand : public Command {
32         
33         public:
34         
35                 AlignCheckCommand(string);      
36                 AlignCheckCommand();
37                 ~AlignCheckCommand(){}
38         
39                 vector<string> setParameters();
40                 string getCommandName()                 { return "align.check";                         }
41                 string getCommandCategory()             { return "Sequence Processing";         }
42                 string getHelpString(); 
43                 string getCitation() { return "http://www.mothur.org/wiki/Align.check"; }
44         
45                 int execute(); 
46                 void help() { m->mothurOut(getHelpString()); }  
47         
48         private:
49                 vector<int> structMap;
50                 string mapfile, fastafile, outputDir, namefile;
51                 bool abort;
52                 int seqLength, haderror;
53                 vector<string> outputNames;
54                 map<string, int> nameMap;
55                 
56                 void readMap();
57                 statData getStats(string sequence);
58 };
59
60 /**************************************************************************************************/
61 #endif
62