fixed specificity and pairing bugs

git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPrimers/trunk@287 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
2010-11-29 22:57:56 +00:00
parent dd08d73dda
commit ca1e9d8899
3 changed files with 17 additions and 9 deletions

View File

@ -252,11 +252,16 @@ static void buildPrimerPairsForOneSeq(uint32_t seqid,
{
// For all primers matching the sequence
for(j=i+1;
(j<matchcount)
&& ((distance=matches[j].position - matches[i].position - options->primer_length) < options->lmax);
j++
)
//for(j=i+1;
// (j<matchcount)
// && ((distance=matches[j].position - matches[i].position - options->primer_length) < options->lmax);
// j++
// )
for (j=i+1; j<matchcount; j++)
{
if (matches[j].position - matches[i].position <= options->primer_length) continue;
distance = matches[j].position - matches[i].position - options->primer_length;
if (distance >= options->lmax) break;
// For all not too far primers
@ -448,6 +453,7 @@ static void buildPrimerPairsForOneSeq(uint32_t seqid,
//
}
}
}
}