Skip to content

JS library for drawing sequence location cartoons using canvas drawing. Based on SimonLarsen/jseqlogo

License

Notifications You must be signed in to change notification settings

rroutsong/jseqlocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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>

About

JS library for drawing sequence location cartoons using canvas drawing. Based on SimonLarsen/jseqlogo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published