Skip to content

Commit

Permalink
Add "sort by readname" to alignment track
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Jul 21, 2021
1 parent e22aa85 commit f443243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/bam/bamAlignmentRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ class BamAlignmentRow {
return Number.MAX_VALUE;
}
}
case "READ_NAME":
return hashCode(alignment.readName);
case "INSERT_SIZE":
return -Math.abs(alignment.fragmentLength);
case "GAP_SIZE":
Expand Down
1 change: 1 addition & 0 deletions js/bam/bamTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,7 @@ class AlignmentTrack {
list.push({label: '  gap size', click: () => sortByOption("GAP_SIZE")});
list.push({label: '  chromosome of mate', click: () => sortByOption("MATE_CHR")});
list.push({label: '  mapping quality', click: () => sortByOption("MQ")});
list.push({label: '  read name', click: () => sortByOption("READ_NAME")});
list.push({
label: '  tag', click: () => {
const cs = this.parent.sortObject;
Expand Down

0 comments on commit f443243

Please sign in to comment.