Permalink
Browse files

use streams instead of to_string: oops forgot some

  • Loading branch information...
yang-yangfeng committed Jan 6, 2018
1 parent 87409d1 commit 62317c55f3fe5b67511305fbc81ddb467bac6a54
Showing with 0 additions and 15 deletions.
  1. +0 −15 src/junctions/junctions_annotator.h
@@ -80,21 +80,6 @@ struct AnnotatedJunction : BED {
}
//Print out the junction
void print(ostream &out = std::cout, bool variant_info_exists = false) {
string acceptors_skipped_str;
string exons_skipped_str;
string donors_skipped_str;
for (set<CHRPOS>::iterator it = acceptors_skipped.begin(); it != acceptors_skipped.end(); ++it) {
acceptors_skipped_str += to_string(*it);
acceptors_skipped_str += ';';
}
for (set<CHRPOS>::iterator it = donors_skipped.begin(); it != donors_skipped.end(); ++it) {
donors_skipped_str += to_string(*it);
donors_skipped_str += ';';
}
for (set<string>::iterator it = exons_skipped.begin(); it != exons_skipped.end(); ++it) {
exons_skipped_str += *it;
exons_skipped_str += ';';
}
out << chrom << "\t" << start <<
"\t" << end << "\t" << name <<
"\t" << score << "\t" << strand <<

0 comments on commit 62317c5

Please sign in to comment.