UNPKG

ideogram

Version:

Chromosome visualization with D3.js

45 lines (42 loc) 1.22 kB
<!DOCTYPE html> <html> <head> <title>Multiple, trio | Ideogram</title> <style>body {font: 12px Arial; line-height: 19.6px;}</style> <script type="text/javascript" src="../../dist/js/ideogram.min.js"></script> </head> <body> <h1>Multiple, trio | Ideogram</h1> <a href="../">Back to overview</a> | <a href="ploidy-recombination">Previous</a> | <a href="multiple-primates">Next</a> <p> Three diploid human genomes: a female, a male, and another male. See also <a href="multiple-trio-sv">Multiple, trio SV</a>. </p> <script type="text/javascript"> var config, genomes, id, i, container, sex; config = { organism: 'human', ploidy: 2, chrHeight: 125, chrWidth: 8, resolution: 400, orientation: 'vertical' }; genomes = [ ['mother', 'female'], ['father', 'male'], ['proband', 'male'] ]; for (i = 0; i < genomes.length; i++) { id = genomes[i][0]; container = '<div id="' + id + '"></div>'; document.querySelector('body').innerHTML += container; config.container = '#' + id; config.sex = genomes[i][1]; window['ideogram_' + id] = new Ideogram(config); } </script> </body> </html>