Skip to content

Commit

Permalink
Look for "TS" attribute to determine transcript strand. See #1558
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Sep 4, 2024
1 parent 7aca9ea commit 15d7569
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/broad/igv/sam/SpliceJunctionHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ public void addAlignment(Alignment alignment) {

// Determine strand. First check for explicit attribute.
boolean isNegativeStrand;
Object strandAttr = alignment.getAttribute("XS");
Object strandAttr = alignment.getAttribute("TS");
if(strandAttr == null) {
strandAttr = alignment.getAttribute("XS"); // Older convention
}

if (strandAttr != null) {
isNegativeStrand = strandAttr.toString().charAt(0) == '-';
} else {
Expand Down

0 comments on commit 15d7569

Please sign in to comment.