Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Merge 92e28af into a25b637
Browse files Browse the repository at this point in the history
  • Loading branch information
kgururaj committed Nov 18, 2014
2 parents a25b637 + 92e28af commit 5afbf9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gamgee/multiple_variant_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ void MultipleVariantIterator::fetch_next_vector() {
const auto top_iterator = m_queue.top();
const auto& variant = **top_iterator;

//top VariantIterator returns 'empty' Variant - no more variants in this VCF
if(variant.missing())
{
m_queue.pop();
continue;
}

if (!m_variant_vector.empty() && !(variant.chromosome() == current_chrom && variant.alignment_start() == current_start))
break;
else {
Expand Down

0 comments on commit 5afbf9b

Please sign in to comment.