]> git.donarmstrong.com Git - mothur.git/blobdiff - preclustercommand.h
1.19.0
[mothur.git] / preclustercommand.h
index 5113fa44e0e5b848a22d52c6c8c03f29a646ffd0..d8ee57de9424e623d0455e0327e6f636ce569135 100644 (file)
@@ -30,22 +30,33 @@ struct seqPNode {
 class PreClusterCommand : public Command {
        
 public:
-       PreClusterCommand(string);      
-       ~PreClusterCommand();
-       int execute();  
-       void help();
+       PreClusterCommand(string);
+       PreClusterCommand();
+       ~PreClusterCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "pre.cluster";                         }
+       string getCommandCategory()             { return "Sequence Processing";         }
+       string getHelpString(); 
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
 private:
        int diffs, length;
        bool abort;
-       string fastafile, namefile;
+       string fastafile, namefile, outputDir;
        vector<seqPNode> alignSeqs; //maps the number of identical seqs to a sequence
-//     map<string, string> names; //represents the names file first column maps to second column
-//     map<string, int> sizes;  //this map a seq name to the number of identical seqs in the names file
+       map<string, string> names; //represents the names file first column maps to second column
+       map<string, int> sizes;  //this map a seq name to the number of identical seqs in the names file
+       map<string, int>::iterator itSize; 
 //     map<string, bool> active; //maps sequence name to whether it has already been merged or not.
+       vector<string> outputNames;
+       map<string, vector<string> > outputTypes;
        
        int readFASTA();
-       int readNamesFASTA();
+       void readNameFile();
+       //int readNamesFASTA();
        int calcMisMatches(string, string);
        void printData(string, string); //fasta filename, names file name
 };