Last active
May 19, 2017 13:13
-
-
Save turner/4d3479371ef839432dd432b16fb3a3e4 to your computer and use it in GitHub Desktop.
Browser - Example - JuiceboxJS. An example of how to instantiate an empty JuiceboxJS browser. No contact matrix. No tracks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<link rel="shortcut icon" href=../img/favicon.ico> | |
<title>Browser</title> | |
<!-- Font Awesome CSS --> | |
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> | |
<!-- jQuery UI CSS --> | |
<link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.12.1/themes/redmond/jquery-ui.css"/> | |
<!-- IGV CSS --> | |
<link rel="stylesheet" type="text/css" href="https://igv.org/web/beta/igv-beta.css"> | |
<!-- Juicebox CSS --> | |
<link rel="stylesheet" type="text/css" href="../dist/juicebox.css"> | |
<!-- Underscore JS --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> | |
<!-- jQuery JS --> | |
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script> | |
<!-- jQuery UI JS --> | |
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script> | |
<!-- IGV JS --> | |
<script src="http://igv.org/web/beta/igv-beta.min.js"></script> | |
<!-- Juicebox JS --> | |
<script src="../dist/juicebox.js"></script> | |
</head> | |
<body> | |
<div id="app-container"> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
var browser, | |
reference; | |
reference = | |
{ | |
id: "hg19", | |
fastaURL: "https://s3.amazonaws.com/igv.broadinstitute.org/genomes/seq/1kg_v37/human_g1k_v37_decoy.fasta", | |
cytobandURL: "https://s3.amazonaws.com/igv.broadinstitute.org/genomes/seq/b37/b37_cytoband.txt" | |
}; | |
browser = hic.createBrowser($('#app-container'), {reference: reference}); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment