]> git.donarmstrong.com Git - mothur.git/blob - removegroupscommand.h
added shared file type to get.groups and remove.groups
[mothur.git] / removegroupscommand.h
1 #ifndef REMOVEGROUPSCOMMAND_H
2 #define REMOVEGROUPSCOMMAND_H
3
4 /*
5  *  removegroupscommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 11/10/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "groupmap.h"
16
17 class RemoveGroupsCommand : public Command {
18         
19 public:
20         
21         RemoveGroupsCommand(string);    
22         RemoveGroupsCommand();
23         ~RemoveGroupsCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "remove.groups";                       }
27         string getCommandCategory()             { return "OTU-Based Approaches";        }
28         string getHelpString(); 
29         string getCitation() { return "http://www.mothur.org/wiki/Remove.groups"; }
30         string getDescription()         { return "removes sequences from a list, fasta, name, group or taxonomy file from a given group or set of groups"; }
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35         
36 private:
37         set<string> names;
38         string accnosfile, fastafile, namefile, groupfile, listfile, taxfile, outputDir, groups, sharedfile;
39         bool abort;
40         vector<string> outputNames, Groups;
41         GroupMap* groupMap;
42         
43         int readFasta();
44         int readShared();
45         int readName();
46         int readGroup();
47         void readAccnos();
48         int readList();
49         int readTax();
50         int fillNames();
51         
52 };
53
54 #endif
55
56