Fix implementation of allowNonUniqueKmersInRef so that it applies to all kmer sizes

This commit is contained in:
Laura Gauthier 2015-04-23 13:01:47 -04:00
parent d4753f189f
commit 97caf94807
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public class ReadThreadingAssembler extends LocalAssemblyEngine {
while ( results.isEmpty() && numIterations <= MAX_KMER_ITERATIONS_TO_ATTEMPT ) {
// on the last attempt we will allow low complexity graphs
final boolean lastAttempt = numIterations == MAX_KMER_ITERATIONS_TO_ATTEMPT;
addResult(results, createGraph(reads, refHaplotype, kmerSize, givenHaplotypes, lastAttempt, lastAttempt));
addResult(results, createGraph(reads, refHaplotype, kmerSize, givenHaplotypes, lastAttempt, allowNonUniqueKmersInRef || lastAttempt));
kmerSize += KMER_SIZE_ITERATION_INCREASE;
numIterations++;
}