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 7 commits into from Feb 28, 2018


None yet
2 participants

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.

rdhayes added some commits Feb 13, 2018

add new function next_segment_position_highlight to return a location…
… 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)
update mate pair menu items to configure a highlight at the new next_…
…segment_position_highlight location string (ref:N..N-1 to add a line highlight just before base N)

@wafflebot wafflebot bot added the in progress label Feb 13, 2018

rdhayes and others added some commits Feb 13, 2018

@rbuels rbuels added this to the 1.12.5 milestone Feb 27, 2018

@rbuels rbuels merged commit dd9cbc6 into dev Feb 28, 2018

@wafflebot wafflebot bot removed the in progress label Feb 28, 2018

@rbuels rbuels deleted the Alignments2_mateHighlightFix branch Feb 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment