8 * Created by Sarah Westcott on 5/15/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "command.hpp"
15 #include "database.hpp"
16 #include "alignment.hpp"
17 #include "alignmentdb.h"
19 class AlignCommand : public Command {
31 linePair(long int i, int j) : start(i), numSeqs(j) {}
33 vector<int> processIDS; //processid
34 vector<linePair*> lines;
37 AlignmentDB* templateDB;
40 int driver(linePair*, string, string, string, string);
41 int createProcesses(string, string, string, string);
42 void appendAlignFiles(string, string);
43 void appendReportFiles(string, string);
46 int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<long>&);
49 string candidateFileName, templateFileName, distanceFileName, search, align, outputDir;
50 float match, misMatch, gapOpen, gapExtend, threshold;
51 int processors, kmerSize;
52 vector<string> candidateFileNames;