Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <[email protected]>
  • Loading branch information
eternal-flame-AD committed Jul 14, 2024
1 parent 56d479e commit cdcaef8
Show file tree
Hide file tree
Showing 6 changed files with 224 additions and 118 deletions.
Binary file added demo-no-ncolor-3ce77ba35d.tar.gz
Binary file not shown.
57 changes: 40 additions & 17 deletions embed.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
Expand All @@ -11,23 +12,45 @@

<body>

<!-- This page contains an undecorated igv.js instance. Its purpose is to serve as an iFrame src for embedding igv.js view -->

<div id="igvDiv"/>

<script type="text/javascript">

document.addEventListener("DOMContentLoaded", function () {
var div = document.getElementById('igvDiv');
var config = {
queryParametersSupported: true
};
igv.createBrowser(div, config);

})

</script>
<!-- This page contains an undecorated igv.js instance. Its purpose is to serve as an iFrame src for embedding igv.js view -->

<div id="igvDiv" />

<script type="text/javascript">

document.addEventListener("DOMContentLoaded", function () {
var div = document.getElementById('igvDiv');
var config = {
genome: "hg19",
nucleotideColors: {
A: "red",
C: "green",
T: "blue",
G: "yellow",
N: "black"
},
tracks: [
{
type: "alignment",
format: "bam",
name: "NA12889",
url: "gs://genomics-public-data/platinum-genomes/bam/NA12878_S1.bam",
indexURL: "gs://genomics-public-data/platinum-genomes/bam/NA12878_S1.bam.bai",
sort: {
chr: "chr1",
position: 155155358,
option: "BASE",
direction: "ASC"
}
}
]
};
igv.createBrowser(div, config);

})

</script>

</body>

</html>
</html>
Loading

0 comments on commit cdcaef8

Please sign in to comment.