Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
HTML5 canvas genomic graphics library
JavaScript Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
src
README.rdoc
Scribl.min.js
version.txt

README.rdoc

Scribl

Scribl is a bioinformatic canvas-based charting library that makes it easy to create charts of alignment and assembly data

Usage

<!DOCTYPE HTML> 
<html lang="en">

<head> <script src=“github.com/chmille4/Scribl/raw/v0.2.3/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

chmille4.github.com/Scribl/

Documentation

github.com/chmille4/Scribl/wiki/Documentation

Minification

The closure compiler is used to combine and minify multiple javascript files.

java -jar ~/Tools/google-closure/compiler.jar  \

–js src/Scribl.class.js \ –js src/Scribl.js \ –js src/Scribl.track.js \ –js src/Scribl.events.js \ –js src/Scribl.utils.js \ –js src/Scribl.svg.js \ –js src/Scribl.glyph.js \ –js src/glyph/Scribl.blockarrow.js \ –js src/glyph/Scribl.rect.js \ –js src/glyph/Scribl.line.js \ –js src/glyph/Scribl.complex.js \ –js src/glyph/Scribl.arrow.js \ –js src/parsers/genbank.js \ –js src/parsers/bed.js \ –js_output_file Scribl.min.js

License

MIT License

Something went wrong with that request. Please try again.