From 763612fc464c6183b0d0fa8742ad1fa30fc04df5 Mon Sep 17 00:00:00 2001 From: westcott Date: Fri, 7 May 2010 15:00:59 +0000 Subject: [PATCH] added diffs to trim.seqs --- trimseqscommand.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trimseqscommand.cpp b/trimseqscommand.cpp index 5379925..06bd0ed 100644 --- a/trimseqscommand.cpp +++ b/trimseqscommand.cpp @@ -636,11 +636,10 @@ bool TrimSeqsCommand::stripBarcode(Sequence& seq, int& group){ alignment->align(oligo, rawSequence.substr(0,length+diffs)); oligo = alignment->getSeqAAln(); string temp = alignment->getSeqBAln(); - cout << "barcode = " << oligo << " raw = " << rawSequence.substr(0,oligo.length()) << " raw aligned = " << temp << endl; + //cout << "barcode = " << oligo << " raw = " << rawSequence.substr(0,oligo.length()) << " raw aligned = " << temp << endl; int newStart=0; - if(compareDNASeq(oligo, rawSequence.substr(0,oligo.length()), length, newStart)){ - cout << "found match" << endl; + if(compareDNASeq(oligo, temp, length, newStart)){ group = it->second; seq.setUnaligned(rawSequence.substr(newStart)); success = 1; @@ -705,9 +704,10 @@ bool TrimSeqsCommand::stripForward(Sequence& seq){ //use needleman to align first primer.length()+numdiffs of sequence to each primer alignment->align(oligo, rawSequence.substr(0,length+diffs)); oligo = alignment->getSeqAAln(); + string temp = alignment->getSeqBAln(); int newStart = 0; - if(compareDNASeq(oligo, rawSequence.substr(0,oligo.length()), length, newStart)){ + if(compareDNASeq(oligo, temp, length, newStart)){ seq.setUnaligned(rawSequence.substr(newStart)); success = 1; break; -- 2.39.2