Scribl
January 8, 2013 ยท View on GitHub
Scribl is a HTML5 canvas-based genomics graphics library
publication - http://www.ncbi.nlm.nih.gov/pubmed/23172864
Usage
<!DOCTYPE HTML>
<html lang="en">
<head>
<script src="Scribl.min.js" ></script>
<script>
function draw(canvasName) {
// Get Canvas and Create Chart
var canvas = document.getElementById(canvasName);
// Create Chart
chart = new Scribl(canvas, 500);
// Add Genes
gene1 = chart.addGene( 5, 750 , '-');
// Draw Chart
chart.draw();
}
</script>
</head>
<body onload="draw('canvas')">
<canvas id="canvas" width="750" height="330"></canvas>
</body>
</html>
Examples
http://chmille4.github.com/Scribl/
Documentation
Minification
The closure compiler is used to combine and minify multiple javascript files. To compile the library yourself install google closure compiler, set the correct path for the closure compiler in compile.sh and then run compile.rb from the main directory
ruby utils/compile.rb
License
MIT License