Skip to content

Commit

Permalink
Changed keeping chr in chrname
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzsedlazeck committed Feb 22, 2018
1 parent c6027e1 commit 66371ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vcfs/Merge_VCF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,14 @@ strvcfentry parse_vcf_entry(std::string buffer) {
tmp.sv_len = abs(tmp.start.pos - tmp.stop.pos);
}
if ((strcmp(tmp.start.chr.c_str(), tmp.stop.chr.c_str()) != 0)) { // || tmp.type==4
std::size_t found = tmp.stop.chr.find("chr");
/*std::size_t found = tmp.stop.chr.find("chr");
if (found != std::string::npos) {
tmp.stop.chr.erase(tmp.stop.chr.begin() + found, tmp.stop.chr.begin() + found + 3);
}
found = tmp.start.chr.find("chr");
if (found != std::string::npos) {
tmp.start.chr.erase(tmp.start.chr.begin() + found, tmp.start.chr.begin() + found + 3);
}
}*/

if (tmp.type == 5) { //BND
if (strcmp(tmp.stop.chr.c_str(), tmp.start.chr.c_str()) == 0) {
Expand Down

0 comments on commit 66371ae

Please sign in to comment.