Skip to content

Commit

Permalink
Reversed strand calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
agraubert committed Mar 28, 2019
1 parent 60bcb94 commit 976c249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace rnaseqc {
if (orientation == Strand::Unknown) return orientation;
bool target = alignment.ReverseFlag();
if ((orientation == Strand::Forward) ^ alignment.FirstFlag()) target = !target;
return target ? Strand::Forward : Strand::Reverse;
return target ? Strand::Reverse : Strand::Forward;
}

// Legacy version of standard alignment metrics
Expand Down

0 comments on commit 976c249

Please sign in to comment.