X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancecommand.h;h=36a1e24b0986bb24a106fb3b72f6cba17f1acfce;hb=83b5acbe3d6087a6cd73e80dde4b923387a01d01;hp=2cb653f790aeb970f2a8f9ba7e1122d2f8ef4c57;hpb=bede5752eaeedb5a7e339439b6ba2f6670bca2b9;p=mothur.git diff --git a/distancecommand.h b/distancecommand.h index 2cb653f..36a1e24 100644 --- a/distancecommand.h +++ b/distancecommand.h @@ -12,40 +12,49 @@ #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; - int processors; + SequenceDB alignDB; + + string countends, output, fastafile, calc, outputDir, oldfastafile, column; + int processors, numNewFasta; 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); + int driverMPI(int, int, string, long&); + #endif + + int convertMatrix(string); + bool sanityCheck(); + int convertToLowerTriangle(string); };