From: pschloss Date: Wed, 3 Jun 2009 18:39:56 +0000 (+0000) Subject: fixed a bug in calculating the # of ambig bases X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=a6c698b20eda3671d22466ab6b98b36331a30804 fixed a bug in calculating the # of ambig bases --- diff --git a/sequence.cpp b/sequence.cpp index 423b905..e9487c5 100644 --- a/sequence.cpp +++ b/sequence.cpp @@ -75,8 +75,8 @@ void Sequence::initialize(){ isAligned = 0; startPos = -1; endPos = -1; - longHomoPolymer = 0; - ambigBases = 0; + longHomoPolymer = -1; + ambigBases = -1; } @@ -212,7 +212,7 @@ int Sequence::getAlignLength(){ int Sequence::getAmbigBases(){ if(ambigBases == -1){ - + ambigBases = 0; for(int j=0;j