X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=database.hpp;fp=database.hpp;h=79050777acd7d695754d7a382741538d35409b94;hb=5a1e62397b91f57d0d3aff635891df04b8999a88;hp=f52cdd58be86d31be87951df68d13983dc9bc921;hpb=df92022fc75c08b91cefa2c6ca4fd7b23eb480b0;p=mothur.git diff --git a/database.hpp b/database.hpp index f52cdd5..7905077 100644 --- a/database.hpp +++ b/database.hpp @@ -48,6 +48,7 @@ public: virtual void generateDB() = 0; virtual void addSequence(Sequence) = 0; //add sequence to search engine virtual vector findClosestSequences(Sequence*, int) = 0; // returns indexes of n closest sequences to query + virtual map findClosest(Sequence*, int){ return results; } // returns of n closest sequences to query and their search scores virtual float getSearchScore(); virtual int getLongestBase(); virtual void readKmerDB(ifstream&){}; @@ -59,6 +60,7 @@ public: protected: int numSeqs, longest; float searchScore; + map results; }; /**************************************************************************************************/ #endif