HTML5 canvas genomic graphics library
JavaScript Ruby
Latest commit 33ddbfd Jan 8, 2013 @chmille4 Update README.mkdn
Permalink
Failed to load latest commit information.
examples update bam.html example to be more user friendly Nov 30, 2012
lib Add nucleotide level display support Dec 9, 2011
src added error catches to parsers Aug 31, 2012
utils Fix examples so they work with symlink to latest minimized Scribl lib Nov 27, 2012
README.mkdn Update README.mkdn Jan 8, 2013
Scribl.1.1.4.min.js
Scribl.min.js
version.txt added error catches to parsers Aug 31, 2012

README.mkdn

Scribl

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