X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classify.cpp;h=346c76478eefdf896fe6f04659174321bc721063;hb=c3f0a9c8f932b923f3a6fbbf143e8f4b85fd6f5f;hp=c0f8a9c7d5115c60d46626235e82b99b625c43c1;hpb=315e38cf393c82be238da5b32574f225a020d25c;p=mothur.git diff --git a/classify.cpp b/classify.cpp index c0f8a9c..346c764 100644 --- a/classify.cpp +++ b/classify.cpp @@ -12,6 +12,7 @@ #include "kmerdb.hpp" #include "suffixdb.hpp" #include "blastdb.hpp" +#include "distancedb.hpp" /**************************************************************************************************/ Classify::Classify(string tfile, string tempFile, string method, int kmerSize, float gapOpen, float gapExtend, float match, float misMatch) : taxFile(tfile), templateFile(tempFile) { @@ -42,6 +43,7 @@ Classify::Classify(string tfile, string tempFile, string method, int kmerSize, f } else if(method == "suffix") { database = new SuffixDB(numSeqs); } else if(method == "blast") { database = new BlastDB(gapOpen, gapExtend, match, misMatch); } + else if(method == "distance") { database = new DistanceDB(); } else { mothurOut(method + " is not a valid search option. I will run the command using kmer, ksize=8."); mothurOutEndLine();