1 #ifndef DISTANCECOMMAND_H
2 #define DISTANCECOMMAND_H
8 * Created by Sarah Westcott on 5/7/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "command.hpp"
15 #include "validcalculator.h"
17 #include "sequencedb.h"
20 class DistanceCommand : public Command {
23 DistanceCommand(string);
27 vector<string> setParameters();
28 string getCommandName() { return "dist.seqs"; }
29 string getCommandCategory() { return "Sequence Processing"; }
30 string getHelpString();
33 void help() { m->mothurOut(getHelpString()); }
46 string countends, output, fastafile, calc, outputDir, oldfastafile, column, compress;
48 int processors, numNewFasta;
50 vector<int> processIDS; //end line, processid
51 vector<distlinePair> lines;
54 vector<string> Estimators, outputNames; //holds estimators to be used
56 //void m->appendFiles(string, string);
57 void createProcesses(string);
58 int driver(/*Dist*, SequenceDB, */int, int, string, float);
59 int driver(int, int, string, string);
62 int driverMPI(int, int, MPI_File&, float);
63 int driverMPI(int, int, string, unsigned long int&);
64 int driverMPI(int, int, string, unsigned long int&, string);
67 //int convertMatrix(string);
69 //int convertToLowerTriangle(string);