Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignments2 mate highlight fix #986

Merged
merged 7 commits into from Feb 28, 2018
Merged
4 changes: 4 additions & 0 deletions release-notes.txt
Expand Up @@ -56,6 +56,10 @@
* Fixed a security issue with JBrowse error messages. Thanks to @GrainGenes for
noticing and reporting it! (issue #602, @rbuels)

* Fixed an off-by-one error in the "Next segment position" field of BAM features.
Thanks to @keiranmraine for reporting it, and @rdhayes for tracking down the fix!
(issue #907, pull #986, @rdhayes)

* Fixed the broken demo track data source in the modENCODE sample data. Thanks
to @cmdcolin for the fix! (pull #999, @cmdcolin)

Expand Down
4 changes: 3 additions & 1 deletion src/JBrowse/Store/SeqFeature/BAM/LazyFeature.js
Expand Up @@ -208,9 +208,11 @@ var Feature = Util.fastDeclare(
return cigar;
},
next_segment_position: function() {
// NOTE: next_segment_position is a JBrowse location string, so
// it is in 1-based coordinates. Thus, we add 1 to the position.
var nextSegment = this.file.indexToChr[this._get('_next_refid')];
if( nextSegment )
return nextSegment.name+':'+this._get('_next_pos');
return nextSegment.name+':'+(parseInt(this._get('_next_pos'))+1);
else
return undefined;
},
Expand Down