X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chimerapintailcommand.h;fp=chimerapintailcommand.h;h=0ddfc1c6229758991e74b0def36a778182a74da6;hb=fdc1f6eaf544f695fc1511f24bddd7e6069c33ba;hp=0000000000000000000000000000000000000000;hpb=aba5f8811829037b0a3004ef33f0ad4ed5e5fcf8;p=mothur.git diff --git a/chimerapintailcommand.h b/chimerapintailcommand.h new file mode 100644 index 0000000..0ddfc1c --- /dev/null +++ b/chimerapintailcommand.h @@ -0,0 +1,58 @@ +#ifndef CHIMERAPINTAILCOMMAND_H +#define CHIMERAPINTAILCOMMAND_H + +/* + * chimerapintailcommand.h + * Mothur + * + * Created by westcott on 4/1/10. + * Copyright 2010 Schloss Lab. All rights reserved. + * + */ + +#include "mothur.h" +#include "command.hpp" +#include "chimera.h" + + +/***********************************************************/ + +class ChimeraPintailCommand : public Command { + +public: + + ChimeraPintailCommand(string); + ~ChimeraPintailCommand(); + int execute(); + void help(); + +private: + + struct linePair { + int start; + int numSeqs; + linePair(long int i, int j) : start(i), numSeqs(j) {} + }; + vector processIDS; //processid + vector lines; + + int driver(linePair*, string, string, string); + int createProcesses(string, string, string); + + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector&); + #endif + + bool abort, filter, MPIWroteAccnos; + string fastafile, templatefile, consfile, quanfile, maskfile, outputDir; + int processors, window, increment, numSeqs, templateSeqsLength; + Chimera* chimera; + + +}; + +/***********************************************************/ + +#endif + +