Permalink
Browse files

string instead of char for strand

  • Loading branch information...
yang-yangfeng committed Jan 7, 2018
1 parent 30fff38 commit d3b06a019d1420e2f3cc199a34d0532fbc8c8234
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/junctions/junctions_extractor.cc
@@ -145,13 +145,13 @@ int JunctionsExtractor::add_junction(Junction j1) {
s1 << j1.start; start = s1.str();
s1 << j1.end; end = s1.str();
//since ?,+,- sort differently on different systems
char strand_proxy;
if(j1.strand == '+') {
strand_proxy = '0';
} else if(j1.strand == '-') {
strand_proxy = '1';
string strand_proxy;
if(j1.strand == "+") {
strand_proxy = "0";
} else if(j1.strand == "-") {
strand_proxy = "1";
} else {
strand_proxy = '2';
strand_proxy = "2";
}
string key = j1.chrom + string(":") + start + "-" + end + ":" + strand_proxy;

0 comments on commit d3b06a0

Please sign in to comment.