]> git.donarmstrong.com Git - mothur.git/blob - binsequencecommand.h
changed random forest output filename
[mothur.git] / binsequencecommand.h
1 #ifndef BINSEQCOMMAND_H
2 #define BINSEQCOMMAND_H
3 /*
4  *  binsequencecommand.h
5  *  Mothur
6  *
7  *  Created by Sarah Westcott on 4/3/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 /* The bin.seqs command outputs a .fasta file for each distance you specify appending the OTU number to each name. */
13
14 #include "command.hpp"
15 #include "inputdata.h"
16 #include "listvector.hpp"
17 #include "fastamap.h"
18 #include "groupmap.h"
19 #include "counttable.h"
20
21 class BinSeqCommand : public Command {
22         
23 public:
24         BinSeqCommand(string);  
25         BinSeqCommand();
26         ~BinSeqCommand();
27         
28         vector<string> setParameters();
29         string getCommandName()                 { return "bin.seqs";                    }
30         string getCommandCategory()             { return "Sequence Processing"; }
31         
32         string getHelpString(); 
33     string getOutputPattern(string);    
34         string getCitation() { return "http://www.mothur.org/wiki/Bin.seqs"; }
35         string getDescription()         { return "maps sequences to otus"; }
36         
37         int execute(); 
38         void help() { m->mothurOut(getHelpString()); }          
39         
40 private:
41         CountTable ct;
42         ListVector* list;
43         InputData* input;
44         FastaMap* fasta;
45         GroupMap* groupMap;
46         bool abort, allLines;
47         set<string> labels; //holds labels to be used
48         string filename, fastafile, listfile, namesfile, groupfile, countfile, label, outputDir;
49         ofstream out;
50         ifstream in, inNames;
51         vector<string> outputNames;
52         
53         void readNamesFile();
54         int process(ListVector*);
55 };
56
57 #endif