1 #ifndef CHIMERACCODECOMMAND_H
2 #define CHIMERACCODECOMMAND_H
5 * chimeraccodecommand.h
8 * Created by westcott on 3/30/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
14 #include "command.hpp"
18 /***********************************************************/
20 class ChimeraCcodeCommand : public Command {
22 ChimeraCcodeCommand(string);
23 ChimeraCcodeCommand();
24 ~ChimeraCcodeCommand(){}
26 vector<string> setParameters();
27 string getCommandName() { return "chimera.ccode"; }
28 string getCommandCategory() { return "Sequence Processing"; }
29 string getOutputFileNameTag(string, string);
30 string getHelpString();
31 string getCitation() { return "Gonzalez JM, Zimmermann J, Saiz-Jimenez C (2005). Evaluating putative chimeric sequences from PCR-amplified products. Bioinformatics 21: 333-7. \nhttp://www.mothur.org/wiki/Chimera.ccode"; }
32 string getDescription() { return "detect chimeric sequences"; }
35 void help() { m->mothurOut(getHelpString()); }
40 unsigned long long start;
41 unsigned long long end;
42 linePair(unsigned long long i, unsigned long long j) : start(i), end(j) {}
44 vector<int> processIDS; //processid
45 vector<linePair*> lines;
47 int driver(linePair*, string, string, string);
48 int createProcesses(string, string, string);
51 int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long long>&);
54 bool abort, filter, save;
55 string fastafile, templatefile, outputDir, maskfile;
56 int processors, window, numwanted, numSeqs, templateSeqsLength;
58 vector<string> fastaFileNames;
59 vector<string> outputNames;
62 /***********************************************************/