X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cluster.hpp;fp=cluster.hpp;h=a6024e79d45a52274040a53cca4f8b32d9d2e998;hb=c82900be3ceed3d9bc491bdc98b1819ef85c1af7;hp=99d8b7d557a41cef684ad2f9aae7d636d621bbc7;hpb=a5afca18544555fba2d9c3670ad1f8574916b0a0;p=mothur.git diff --git a/cluster.hpp b/cluster.hpp index 99d8b7d..a6024e7 100644 --- a/cluster.hpp +++ b/cluster.hpp @@ -14,8 +14,10 @@ class Cluster { public: Cluster(RAbundVector*, ListVector*, SparseMatrix*); - virtual void update(); + virtual void update(); virtual string getTag() = 0; + virtual void setMapWanted(bool m); + virtual map getSeqtoBin() { return seq2Bin; } protected: void getRowColCells(); @@ -25,6 +27,7 @@ protected: virtual void clusterBins(); virtual void clusterNames(); + virtual void updateMap(); RAbundVector* rabund; ListVector* list; @@ -33,8 +36,10 @@ protected: int smallRow; int smallCol; float smallDist; + bool mapWanted; + map seq2Bin; - vector seqVec; // contains vectors of cells related to a certain sequence + vector seqVec; // contains vectors of cells related to a certain sequence MatVec rowCells; MatVec colCells; ull nRowCells;