X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=suffixdb.cpp;fp=suffixdb.cpp;h=39a9b54945cf1fb0a7d4f8f29ecc323381784d1d;hb=63e089e0b3aad1741bab60119ed7ccc784dce347;hp=5bcd8e96c0be725ee978ba74a4d32bb36b3aa4e0;hpb=f5023c911c377e5320c5110c78af98dd8841ef58;p=mothur.git diff --git a/suffixdb.cpp b/suffixdb.cpp index 5bcd8e9..39a9b54 100644 --- a/suffixdb.cpp +++ b/suffixdb.cpp @@ -22,41 +22,58 @@ /**************************************************************************************************/ -SuffixDB::SuffixDB(string fastaFileName) : Database(fastaFileName) { - +SuffixDB::SuffixDB(int numSeqs) : Database() { suffixForest.resize(numSeqs); - mothurOut("Generating the suffix tree database...\t"); cout.flush(); - for(int i=0;iconvert2ints(); // the candidate sequence needs to be a string of ints - for(int i=0;i SuffixDB::findClosestSequences(Sequence* candidateSeq, int num){ + try { + vector topMatches; + string processedSeq = candidateSeq->convert2ints(); // the candidate sequence needs to be a string of ints + + vector seqMatches; + for(int i=0;i= 0; i--) { suffixForest.pop_back(); } - // templateSequences.clear(); - } /**************************************************************************************************/