Skip to content

Commit

Permalink
Merge pull request fritzsedlazeck#222 from smoe/patch-2
Browse files Browse the repository at this point in the history
Update BedpePrinter.cpp
  • Loading branch information
fritzsedlazeck authored Sep 4, 2020
2 parents 53b7500 + 6b4593c commit bab28ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/print/BedpePrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void BedpePrinter::print_body(Breakpoint * &SV, RefVector ref) {
if (((SV->get_SVtype() & INS) && SV->get_length() == Parameter::Instance()->huge_ins) && SV->get_types().is_ALN) {//!
fprintf(file, "%i", 999999999);
} else {
fprintf(file, "%i", SV->get_length());
fprintf(file, "%li", SV->get_length());
}

if (((SV->get_SVtype() & INS) && SV->get_length() == Parameter::Instance()->huge_ins) && SV->get_types().is_ALN) {
Expand All @@ -120,14 +120,14 @@ void BedpePrinter::print_body_recall(Breakpoint * &SV, RefVector ref) {
fprintf(file, "%c", '\t');
fprintf(file, "%i", pos);
fprintf(file, "%c", '\t');
fprintf(file, "%i", IPrinter::calc_pos(SV->get_coordinates().start.max_pos, ref, chr));
fprintf(file, "%li", IPrinter::calc_pos(SV->get_coordinates().start.max_pos, ref, chr));
fprintf(file, "%c", '\t');
pos = IPrinter::calc_pos(SV->get_coordinates().stop.min_pos, ref, chr);
fprintf(file, "%s", chr.c_str());
fprintf(file, "%c", '\t');
fprintf(file, "%i", pos);
fprintf(file, "%c", '\t');
fprintf(file, "%i", IPrinter::calc_pos(SV->get_coordinates().stop.max_pos, ref, chr));
fprintf(file, "%li", IPrinter::calc_pos(SV->get_coordinates().stop.max_pos, ref, chr));
fprintf(file, "%c", '\t');
fprintf(file, "%i", id);
id++;
Expand Down Expand Up @@ -155,7 +155,7 @@ void BedpePrinter::print_body_recall(Breakpoint * &SV, RefVector ref) {
if (((SV->get_SVtype() & INS) && SV->get_length() == Parameter::Instance()->huge_ins) && !SV->get_types().is_SR) {
fprintf(file, "%s", "NA");
} else {
fprintf(file, "%i", SV->get_length());
fprintf(file, "%li", SV->get_length());
}
//fprintf(file, "%c", '\t');
//fprintf(file, "%i", SV->get_support());
Expand Down

0 comments on commit bab28ef

Please sign in to comment.