X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readblast.h;h=fd32380c20c1a7145a8c65d07700b54d2d5bc63b;hb=a6cf29fa4dac0909c7582cb1094151d34093ee76;hp=0b47b5942d7126cec59ce0923a66c1bc4c6ff4e1;hpb=c82900be3ceed3d9bc491bdc98b1819ef85c1af7;p=mothur.git diff --git a/readblast.h b/readblast.h index 0b47b59..fd32380 100644 --- a/readblast.h +++ b/readblast.h @@ -13,15 +13,6 @@ #include "sparsematrix.hpp" #include "nameassignment.hpp" -/****************************************************************************************/ -struct DistNode { - int seq1; - int seq2; - float dist; - DistNode(int s1, int s2, float d) : seq1(s1), seq2(s2), dist(d) {} - DistNode() {} - ~DistNode() {} -}; /****************************************************************************************/ //Note: this class creates a sparsematrix and list if the read is executed, but does not delete them on deconstruction. @@ -34,9 +25,9 @@ public: ReadBlast(string, float, float, int, bool, bool); //blastfile, cutoff, penalty, length of overlap, min or max bsr, hclusterWanted ~ReadBlast() {} - void read(NameAssignment*); + int read(NameAssignment*); SparseMatrix* getDistMatrix() { return matrix; } - vector getOverlapMatrix() { return overlap; } + vector getOverlapMatrix() { return overlap; } string getOverlapFile() { return overlapFile; } string getDistFile() { return distFile; } @@ -48,9 +39,10 @@ private: bool hclusterWanted; SparseMatrix* matrix; - vector overlap; + vector overlap; + MothurOut* m; - void readNames(NameAssignment*); + int readNames(NameAssignment*); }; /*******************************************************************************************/