]> git.donarmstrong.com Git - mothur.git/blob - binsequencecommand.h
added set.dir command and modified commands to redirect input and output, removed...
[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 "readotu.h"
18 #include "fastamap.h"
19 #include "groupmap.h"
20
21
22 class GlobalData;
23
24 class BinSeqCommand : public Command {
25         
26 public:
27         BinSeqCommand(string);  
28         ~BinSeqCommand();
29         int execute();
30         void help();    
31         
32 private:
33         GlobalData* globaldata;
34         ListVector* list;
35         ReadOTUFile* read;
36         InputData* input;
37         FastaMap* fasta;
38         GroupMap* groupMap;
39         bool abort, allLines;
40         set<string> labels; //holds labels to be used
41         string filename, fastafile, namesfile, groupfile, label, outputDir;
42         ofstream out;
43         ifstream in, inNames;
44         
45         void readNamesFile();
46         int process(ListVector*);
47 };
48
49 #endif