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

Alignments2 mate highlight fix #986

merged 7 commits into from Feb 28, 2018

Conversation

rdhayes
Copy link
Contributor

@rdhayes rdhayes commented Feb 13, 2018

Fixes #907

I opted for two changes to BAM/LazyParser.js, with associated updates to highlight attributes in Alignments2 menuTemplate:

  1. New next_segment_position_highlight() to return the non-intuitive Location format to cause a single line highlight at the starting base (e.g. Chr01:20..19 will draw a line between bases 19 and 20). Start from feature.get('_next_pos') is incremented from BAM 0-based coordinate to highlight at the correct base.

  2. The existing next_segment_position() function is now only used in Alignments2 menuTemplate title attributes, where again incrementing feature.get('_next_pos') by 1 to get the correct display coordinates in 1-space seems correct.

… string in the format ref:N..N-1 to place a line highlight interbase between N-1 and N; update to add 1 to feature.get('_next_pos') in function next_segment_position, to return single-base ref:N coordinates as 1-based (next_segment_position now only used in menu item titles)
…segment_position_highlight location string (ref:N..N-1 to add a line highlight just before base N)
@ghost ghost assigned rdhayes Feb 13, 2018
@ghost ghost added the in progress currently being worked on label Feb 13, 2018
@ghost ghost assigned rbuels Feb 27, 2018
@rbuels rbuels added this to the 1.12.5 milestone Feb 27, 2018
@rbuels rbuels merged commit dd9cbc6 into dev Feb 28, 2018
@ghost ghost removed the in progress currently being worked on label Feb 28, 2018
@rbuels rbuels deleted the Alignments2_mateHighlightFix branch February 28, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants