Merged bug fix from Stable into Unstable

This commit is contained in:
Ryan Poplin 2013-03-04 12:36:04 -05:00
commit ce7554e9d6
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class DeBruijnAssembler extends LocalAssemblyEngine {
graphs.clear();
final int maxKmer = ReadUtils.getMaxReadLength(reads) - KMER_OVERLAP - 1;
if( maxKmer < MIN_KMER ) { throw new IllegalStateException("Reads are too small for use in assembly."); }
if( maxKmer < MIN_KMER ) { return; } // Reads are too small for assembly so don't try to create any assembly graphs
// create the graph for each possible kmer
for( int kmer = maxKmer; kmer >= MIN_KMER; kmer -= GRAPH_KMER_STEP ) {