X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancecommand.h;h=c1dac1443a4d2a213ab715d79908e6dd76027a62;hb=aba5f8811829037b0a3004ef33f0ad4ed5e5fcf8;hp=2cb653f790aeb970f2a8f9ba7e1122d2f8ef4c57;hpb=bede5752eaeedb5a7e339439b6ba2f6670bca2b9;p=mothur.git diff --git a/distancecommand.h b/distancecommand.h index 2cb653f..c1dac14 100644 --- a/distancecommand.h +++ b/distancecommand.h @@ -12,40 +12,47 @@ #include "mothur.h" #include "command.hpp" -#include "globaldata.hpp" #include "validcalculator.h" #include "dist.h" #include "sequencedb.h" -struct linePair { - int start; - int end; -}; class DistanceCommand : public Command { public: - DistanceCommand(); - ~DistanceCommand() {}; + DistanceCommand(string); + ~DistanceCommand(); int execute(); + void help(); private: - GlobalData* globaldata; - ValidCalculators* validCalculator; + struct linePair { + int start; + int end; + }; + Dist* distCalculator; - SequenceDB* seqDB; - ofstream out, outFile; - ifstream in; - string countends, phylip; + SequenceDB alignDB; + + string countends, output, fastafile, calc, outputDir; int processors; float cutoff; map processIDS; //end line, processid - map::iterator it; vector lines; - void appendFiles(string, string); + bool abort; + vector Estimators; //holds estimators to be used + + //void appendFiles(string, string); void createProcesses(string); - int driver(Dist*, SequenceDB*, int, int, string, float); + int driver(/*Dist*, SequenceDB, */int, int, string, float); + + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, float); + #endif + + int convertMatrix(string); + int convertToLowerTriangle(string); };