Skip to content

Commit

Permalink
making the bed option compatible with the branching filter
Browse files Browse the repository at this point in the history
  • Loading branch information
clemaitre committed Mar 1, 2022
1 parent 226ad71 commit 10cbc7d
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/FindBreakpoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,18 +503,28 @@ void FindBreakpoints<span>::operator()()
end_pos=get<1>(interval_vector.front());
}

if(!(*m_it_kmer).isValid() || (m_position<start_pos))
if(!(*m_it_kmer).isValid())
{
//Reintialize stretch_size for each bed region

//Re-initialize stretch_size
this->m_solid_stretch_size = 0;
this->m_gap_stretch_size = 0;
this->m_kmer_begin = KmerCanonical();
this->m_kmer_end = KmerCanonical();
//DEBUG
//cout<<"n";

}


if(m_position==start_pos-1) //for each beginning of bed region
{
//Re-initialize stretch_size for each bed region
this->m_solid_stretch_size = 0;
this->m_gap_stretch_size = 0;
this->m_kmer_begin = KmerCanonical();
this->m_kmer_end = KmerCanonical();

//Re-initialize het_kmer_history for each bed region
memset(this->m_het_kmer_history, 0, sizeof(info_type)*256);
}


if(((*m_it_kmer).isValid()) && (m_position>=start_pos)) //inside the current bed interval
{
Expand Down

0 comments on commit 10cbc7d

Please sign in to comment.