Skip to content

Commit

Permalink
Require at least two occurrences in the base sequence when making com…
Browse files Browse the repository at this point in the history
…parative calls
  • Loading branch information
jts committed Jul 8, 2012
1 parent 20519aa commit ef79e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GraphDiff/GraphCompare.cpp
Expand Up @@ -146,14 +146,15 @@ GraphCompareResult GraphCompare::process(const SequenceWorkItem& item)
count += rc_interval.size();

bool both_strands = interval.size() > 0 && rc_interval.size() > 0;
size_t min_base_coverage = m_parameters.bReferenceMode ? 1 : 2;

if(count >= m_parameters.minDiscoveryCount && count < m_parameters.maxDiscoveryCount && !variantAttempted && both_strands)
{
// Check if this k-mer is present in the other base index
size_t base_count = BWTAlgorithms::countSequenceOccurrences(kmer, m_parameters.baseIndex);

// k-mer present in the base read set, skip it
if(base_count > 0)
if(base_count >= min_base_coverage)
continue;

if(m_parameters.verbose > 0)
Expand Down

0 comments on commit ef79e9e

Please sign in to comment.