]> git.donarmstrong.com Git - mothur.git/blob - getseqscommand.h
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / getseqscommand.h
1 #ifndef GETSEQSCOMMAND_H
2 #define GETSEQSCOMMAND_H
3
4 /*
5  *  getseqscommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 7/8/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14
15 class GetSeqsCommand : public Command {
16         
17         public:
18         
19                 GetSeqsCommand(string);
20                 GetSeqsCommand();
21                 ~GetSeqsCommand(){}
22         
23                 vector<string> setParameters();
24                 string getCommandName()                 { return "get.seqs";                            }
25                 string getCommandCategory()             { return "Sequence Processing";         }
26                 
27         string getHelpString(); 
28     string getOutputPattern(string);    
29                 string getCitation() { return "http://www.mothur.org/wiki/Get.seqs"; }
30                 string getDescription()         { return "gets sequences from a list, fasta, name, group, alignreport, quality or taxonomy file"; }
31
32                 int execute(); 
33                 void help() { m->mothurOut(getHelpString()); }  
34         
35         
36         private:
37                 set<string> names;
38                 vector<string> outputNames;
39                 string accnosfile, accnosfile2, fastafile, namefile, countfile, groupfile, alignfile, listfile, taxfile, qualfile, outputDir;
40                 bool abort, dups;
41         map<string, string> uniqueMap;
42         //for debug
43         map<string, set<string> > sanity; //maps file type to names chosen for file. something like "fasta" -> vector<string>. If running in debug mode this is filled and we check to make sure all the files have the same names. If they don't we output the differences for the user.
44                 
45                 int readFasta();
46                 int readName();
47                 int readGroup();
48         int readCount();
49                 int readAlign();
50                 int readList();
51                 int readTax();
52                 int readQual();
53                 int compareAccnos();
54         int runSanityCheck();
55         int createMisMatchFile(ofstream&, string, string, set<string>, set<string>);
56
57                 
58 };
59
60 #endif
61