|
4 | 4 | <title>Multiple, trio | Ideogram</title> |
5 | 5 | <link type="text/css" rel="stylesheet" href="../dist/css/ideogram.css"/> |
6 | 6 | <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.1.1/d3.min.js"></script> |
7 | | - <script type="text/javascript" src="../dist/js/ideogram.min.js"></script> |
| 7 | + <script type="text/javascript" src="../dist/js/ideogram.js"></script> |
8 | 8 | </head> |
9 | 9 | <body> |
10 | 10 | <h1>Multiple, trio | Ideogram</h1> |
11 | 11 | <a href=".">Back to overview</a> |
12 | 12 | <p> |
13 | | - A minimal example of three human genomes. |
| 13 | + Three diploid human genomes: a female, a male, and another male. |
14 | 14 | See also <a href="multiple_trio_sv.html">Multiple, trio SV</a>. |
15 | 15 | </p> |
16 | 16 | <script type="text/javascript"> |
17 | | - var config, containerIDs, id, i, container; |
| 17 | + var config, genomes, id, i, container, sex; |
18 | 18 |
|
19 | 19 | config = { |
20 | 20 | organism: "human", |
| 21 | + ploidy: 2, |
21 | 22 | chrHeight: 125, |
| 23 | + chrWidth: 8, |
22 | 24 | resolution: 400, |
23 | 25 | orientation: "vertical" |
24 | 26 | }; |
25 | 27 |
|
26 | | - containerIDs = ["mother", "father", "proband"]; |
27 | | - for (i = 0; i < containerIDs.length; i++) { |
28 | | - id = containerIDs[i]; |
| 28 | + genomes = [ |
| 29 | + ["mother", "female"], |
| 30 | + ["father", "male"], |
| 31 | + ["proband", "male"] |
| 32 | + ]; |
| 33 | + for (i = 0; i < genomes.length; i++) { |
| 34 | + id = genomes[i][0]; |
29 | 35 | container = '<div id="' + id + '"></div>'; |
30 | 36 | document.querySelector("body").innerHTML += container; |
31 | 37 | config.container = "#" + id; |
| 38 | + config.sex = genomes[i][1]; |
32 | 39 | new Ideogram(config); |
33 | 40 | } |
34 | 41 | </script> |
|
0 commit comments