X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancecommand.h;h=595483d2b3e84aef55478a78bd84906771949e5d;hb=d9b668f68b99f92ecdc71dd8cd363cb4e27107f9;hp=7521ac70bdf6cf323b6442577ec7b1e609d6ccd8;hpb=9c23307c583d4e8595f75278c13e708788f2f058;p=mothur.git diff --git a/distancecommand.h b/distancecommand.h index 7521ac7..595483d 100644 --- a/distancecommand.h +++ b/distancecommand.h @@ -20,33 +20,51 @@ class DistanceCommand : public Command { public: - DistanceCommand(string); + DistanceCommand(string); + DistanceCommand(); ~DistanceCommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } int execute(); void help(); private: - struct linePair { + struct distlinePair { int start; int end; + }; Dist* distCalculator; SequenceDB alignDB; - string countends, output, fastafile, calc, outputDir; - int processors; + string countends, output, fastafile, calc, outputDir, oldfastafile, column, compress; + + int processors, numNewFasta; float cutoff; - map processIDS; //end line, processid - vector lines; + vector processIDS; //end line, processid + vector lines; bool abort; - vector Estimators; //holds estimators to be used + vector Estimators, outputNames; //holds estimators to be used + map > outputTypes; - //void appendFiles(string, string); + //void m->appendFiles(string, string); void createProcesses(string); int driver(/*Dist*, SequenceDB, */int, int, string, float); - void convertMatrix(string); + int driver(int, int, string, string); + + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, float); + int driverMPI(int, int, string, unsigned long int&); + int driverMPI(int, int, string, unsigned long int&, string); + #endif + + //int convertMatrix(string); + bool sanityCheck(); + //int convertToLowerTriangle(string); };