]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.h
added screen.seqs command - pds
[mothur.git] / getoturepcommand.h
index d0343daa3cb647957e694cfa101ec5406edf3304..8153c3645fc5de028a6a9812426889297991ab85 100644 (file)
@@ -8,15 +8,17 @@
  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
+ /* The get.oturep command outputs a .fastarep file for each distance you specify, selecting one OTU representative for each bin. */
 
 #include "command.hpp"
 #include "globaldata.hpp"
 #include "sparsematrix.hpp"
 #include "listvector.hpp"
 #include "inputdata.h"
-#include "readmatrix.hpp"
+#include "readotu.h"
 #include "fastamap.h"
-
+#include "groupmap.h"
 
 class GlobalData;
 
@@ -34,12 +36,14 @@ private:
        SparseMatrix* matrix;
        ListVector* list;
        ListVector* listOfNames;
-       ReadMatrix* read;
+       ReadOTUFile* read;
        InputData* input;
        FastaMap* fasta;
-       string filename, fastafile, namesfile;
+       GroupMap* groupMap;
+       string filename, fastafile, namesfile, groupfile;
        ofstream out;
        ifstream in, inNames;
+       bool groupError;
        
         
        map<string, int> nameToIndex;  //maps sequence name to index in sparsematrix
@@ -48,7 +52,8 @@ private:
        map<string, int>::iterator it3;
        
        void readNamesFile();
-       string FindRep(int); // returns name of "representative" sequence of given bin.
+       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
 
 };