]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.h
finished chimera.slayer template=self change
[mothur.git] / chimeraslayercommand.h
index 9567fcab31c20f22987d04eb0a2a409dd1dfc50b..e5ffeb69c860aab7d08e60d134d6baacae4033f4 100644 (file)
 #include "command.hpp"
 #include "chimera.h"
 
-
 /***********************************************************/
 
 class ChimeraSlayerCommand : public Command {
 public:
        ChimeraSlayerCommand(string);
        ChimeraSlayerCommand();
-       ~ChimeraSlayerCommand();
-       vector<string> getRequiredParameters();
-       vector<string> getValidParameters();
-       vector<string> getRequiredFiles();
-       map<string, vector<string> > getOutputFiles() { return outputTypes; }
-       int execute();
-       void help();
+       ~ChimeraSlayerCommand() {}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "chimera.slayer";              }
+       string getCommandCategory()             { return "Sequence Processing"; }
+       string getHelpString(); 
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }          
        
-               
 private:
 
        struct linePair {
@@ -41,21 +41,22 @@ private:
        vector<int> processIDS;   //processid
        vector<linePair*> lines;
        
-       int driver(linePair*, string, string, string);
-       int createProcesses(string, string, string);
+       int driver(linePair*, string, string, string, string);
+       int createProcesses(string, string, string, string);
+       int divideInHalf(Sequence, string&, string&);
+       map<string, int> sortFastaFile(string, string);
                
        #ifdef USE_MPI
-       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
+       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
        #endif
 
-       bool abort, realign;
-       string fastafile, templatefile, outputDir, search, namefile, includeAbunds;
+       bool abort, realign, trim, trimera;
+       string fastafile, templatefile, outputDir, search, namefile;
        int processors, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength;
        float divR;
        Chimera* chimera;
        
        vector<string> outputNames;
-       map<string, vector<string> > outputTypes;
        vector<string> fastaFileNames;
        vector<string> nameFileNames;