]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.h
merged pat's trim seqs edits with sarah's major overhaul of global data; also added...
[mothur.git] / getoturepcommand.h
index deafc78c5512edc5039a0425910aaa979eb8f639..37c4194a8c16e0664d7cb834b4777c054b61268d 100644 (file)
@@ -27,32 +27,32 @@ typedef list<PCell>::iterator MatData;
 class GetOTURepCommand : public Command {
        
 public:
-       GetOTURepCommand();     
+       GetOTURepCommand(string);       
        ~GetOTURepCommand();
-       int execute();  
+       int execute();
+       void help();    
        
 private:
        GlobalData* globaldata;
        SparseMatrix* matrix;
        ListVector* list;
-       ListVector* listOfNames;
        ReadOTUFile* read;
        InputData* input;
        FastaMap* fasta;
        GroupMap* groupMap;
-       string filename, fastafile, namesfile, groupfile;
+       string filename, fastafile, listfile, namesfile, groupfile, line, label;
        ofstream out;
        ifstream in, inNames;
        bool groupError;
        
-        
+       bool abort, allLines;
+       set<int> lines; //hold lines to be used
+       set<string> labels; //holds labels to be used
        map<string, int> nameToIndex;  //maps sequence name to index in sparsematrix
-       map<int, string>::iterator it;
-       map<int, string>::iterator it2;
-       map<string, int>::iterator it3;
        
        void readNamesFile();
-       string FindRep(int, string&); // returns name of "representative" sequence of given bin. //and fill a string containing the groups in that bin if a groupfile is given
+       int process(ListVector*);
+       string FindRep(int, string&, ListVector*); // returns name of "representative" sequence of given bin. //and fill a string containing the groups in that bin if a groupfile is given
 
 };