]> git.donarmstrong.com Git - mothur.git/blob - binsequencecommand.h
merged pat's trim seqs edits with sarah's major overhaul of global data; also added...
[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<int> lines; //hold lines to be used
41         set<string> labels; //holds labels to be used
42         string filename, fastafile, namesfile, groupfile, line, label;
43         ofstream out;
44         ifstream in, inNames;
45         
46         void readNamesFile();
47         int process(ListVector*, int);
48 };
49
50 #endif