#include "mothur.h"
#include "command.hpp"
-#include "filterseqscommand.h"
-#include "sequence.hpp"
-
+#include "chimera.h"
/***********************************************************/
int execute();
void help();
+
private:
- //Dist* distCalculator;
-
- struct Preference {
- string leftParent;
- string rightParent;
- float score;
+ struct linePair {
+ int start;
+ int numSeqs;
+ linePair(long int i, int j) : start(i), numSeqs(j) {}
};
-
+ vector<int> processIDS; //processid
+ vector<linePair*> lines;
+
+ int driver(linePair*, string, string, string);
+ void createProcesses(string, string, string);
+ void appendOutputFiles(string, string);
bool abort;
- string method, fastafile;
- bool filter, correction;
- int processors, midpoint;
- FilterSeqsCommand* filterSeqs;
- vector<Sequence> seqs;
- vector<Preference> pref;
+ string method, fastafile, templatefile, consfile, quanfile, maskfile, namefile, outputDir, search;
+ bool filter, correction, svg, printAll, realign;
+ int processors, midpoint, averageLeft, averageRight, window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, numSeqs, templateSeqsLength;
+ float divR;
+ Chimera* chimera;
- int findAverageMidPoint();
- void readSeqs();
-
};
/***********************************************************/