Thread unique synteny regions along main chromosome #1130
+60
−27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Description
This PR would update the way the synteny view handles data, obtaining a unique set of synteny regions in the main chromosome, and then ordering these in such a way that they are 'threaded' along it.
It would also update the info box shown when a chromosome lacks synteny regions in the selected other species.
Views affected
This PR changes code used in all synteny views.
However, most synteny views should be essentially unaffected.
It is intended to fix issues with the Human self-synteny view, mainly due to challenges working with syntenic regions that may connect different regions of the same genome, possibly even two regions of the same chromosome.
Synteny views affected
Example of synteny view affected by this PR:
Example image of Human self-synteny view for chromosome 1 on sandbox:

Example image of Human self-synteny view for chromosome 1 on staging:

Synteny views unaffected
The following synteny examples should be consistent between sandbox and staging, though the rendering order of highlighted regions or the placement of other chromosomes in the synteny view may differ in some cases.
Vertebrates
Example image of Human vs Chimpanzee synteny view for chromosome 2 on sandbox:

Example image of Human vs Chimpanzee synteny view for chromosome 2 on staging:

Plants
Metazoa
Possible complications
None expected, though further checks are needed.
Merge conflicts
None detected
Related JIRA Issues (EBI developers only)