Skip to main content
100%

simple genome map

✓ Published0🌍 Public
BBrieLewis
Last edited May 2, 2017
Created on Feb 21, 2017

This simple genome map visualizes gene positions along a linear chromosome, with each gene represented as a rectangle whose horizontal span corresponds to its start and stop coordinates. The visualization distinguishes gene orientation by color and vertical placement: forward-oriented genes appear in green at the top track, while reverse-oriented genes appear in red on a lower track. Built with D3 v4, the code loads data from a JSON file and binds it to SVG rectangles, computing each rectangle’s width from the difference between stop and start values. The author uses basic data joins and attribute setters without scales, keeping the mapping directly proportional to the raw numeric coordinates.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/scresawn/'>scresawn</a>'s block: <a href='http://bl.ocks.org/scresawn/ec90702f0e132dc4516c0d483c9f7030'>simple genome map</a>

mit Licensed

Similar vizzes