Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 725 Bytes

README.md

File metadata and controls

34 lines (28 loc) · 725 Bytes

jseqlocation

Simple Javascript sequence block location visualization using vanilla JS.

Usage

<!DOCTYPE html>
<html lang="en">
    <body>
        <canvas id="location_canvas"></canvas>

        <script src="js/jseqlocation.js"></script>
        <script>
            var columns = {
		"sequence": {
                	// start, end, strand sense(orientation)
			[5, 56, "+"],
			[550, 560, "+"],
			[255, 235, "-"],
			[100, 85. "-"]								
		}
	    };						

            var options = {
                "ymax": 1
            };

            sequence_logo(document.getElementById("location_canvas"), 600, 200, columns, options);
        </script>
    </body>
</html>