Gene structure display
This visualization displays a linear genome map as a series of tiers, with colored segments representing genes along a specified range. Segments are automatically arranged into rows to avoid collisions, and hovering reveals a tooltip with details. The code uses D3 v3 with SVG rendering, custom collision detection, and underscore.js for data grouping, with data sourced from KEGG and a custom `d3.svg.geneStructure` function.
AI-generated descriptionBuilt with blockbuilder.org
- A example from KEGG
- Author: cxhair@163.com
features:
A pie of genome will be divided by the variant opt.division into blocks. Every block containe one or more tiers, each tier will have some genome segements. If it detects segements collision with adjacent one, a new tier will be generated to accommodate the clinch one;
Text will not collision with each other using collision detection;
When Mouse hover on one segement that will prompt a tooltip with detail information.