Skip to content

Commit

Permalink
improving bed option
Browse files Browse the repository at this point in the history
  • Loading branch information
clemaitre committed Mar 1, 2022
1 parent bb1f38e commit 2dfdfd2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FindBreakpoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,12 @@ void FindBreakpoints<span>::operator()()
v.push_back(token);
}
if(v[0]==m_chrom_name){ // we are on the current chromosome
interval=std::make_pair(std::stoi(v[1]),std::stoi(v[2]));
interval_vector.push_back( tuple<uint64_t ,uint64_t>(interval));
uint64_t bed_begin = std::stoi(v[1]);
uint64_t bed_end = std::stoi(v[2]);
if ((bed_end-bed_begin) > this->finder->_kmerSize){
interval=std::make_pair(std::stoi(v[1]),std::stoi(v[2]));
interval_vector.push_back( tuple<uint64_t ,uint64_t>(interval));
}
}
iss.clear();
}
Expand Down
4 changes: 4 additions & 0 deletions src/Finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ void Finder::resumeParameters(){
getInfo()->add(2,"Graph",getInput()->getStr(STR_URI_GRAPH).c_str());
}
getInfo()->add(2,"Reference",getInput()->getStr(STR_URI_REF).c_str());
if(getInput()->get(STR_BED) != 0)
{
getInfo()->add(2,"Bed file",_bed_file_name.c_str());
}
getInfo()->add(1,"Graph");
getInfo()->add(2,"kmer-size","%i", _kmerSize);

Expand Down

0 comments on commit 2dfdfd2

Please sign in to comment.