]> git.donarmstrong.com Git - mothur.git/blobdiff - clusterfragmentscommand.h
forced rarefaction.single to output ending line for all groups. added subsample...
[mothur.git] / clusterfragmentscommand.h
index 9bdbc4479f19bd7e1aa8297ed4e1f278e0de912f..c7ea7e0d078f0abfe404afd41cab0b4500bc5c48 100644 (file)
@@ -31,21 +31,33 @@ class ClusterFragmentsCommand : public Command {
        
 public:
        ClusterFragmentsCommand(string);
-       ~ClusterFragmentsCommand();
-       int execute();  
-       void help();
+       ClusterFragmentsCommand();
+       ~ClusterFragmentsCommand() {}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "cluster.fragments";           }
+       string getCommandCategory()             { return "Sequence Processing";         }
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/Cluster.fragments"; }
+       string getDescription()         { return "creates a namesfile with sequences that are a fragment of a larger sequence"; }
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
 private:
        bool abort;
        string fastafile, namefile, outputDir;
+       int diffs, percent;
        vector<seqRNode> alignSeqs; 
        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; 
+       vector<string> outputNames;
        
        int readFASTA();
        void readNameFile();
        void printData(string, string); //fasta filename, names file name
+       bool isFragment(string, string);
        
 };