Skip to content

Instantly share code, notes, and snippets.

View chmille4's full-sized avatar

Chase Miller chmille4

  • Frameshift Genomics
  • Boston, MA
View GitHub Profile
@chmille4
chmille4 / index.html
Last active December 17, 2015 19:33
Iobio.viz Gene Modal
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
@chmille4
chmille4 / index.html
Last active May 2, 2016 16:43
Iobio.viz Alignment Chart
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
@chmille4
chmille4 / index.html
Last active December 4, 2015 15:56
Iobio.viz Line Chart
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
@chmille4
chmille4 / index.html
Last active December 17, 2015 19:35
Iobio.viz BarViewer Chart
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
@chmille4
chmille4 / index.html
Last active December 17, 2015 19:36
Iobio.viz Bar Chart
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin: auto;
@chmille4
chmille4 / index.html
Last active May 4, 2016 17:11
Iobio.viz Pie/Donut Chart
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script>
<script src="http://iobio.io/public/js/iobio.viz.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://iobio.io/public/css/iobio.viz.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@chmille4
chmille4 / gist:4253645
Created December 10, 2012 21:43
Make scribl scrollable and zoomable with jQRangeSlider
<!DOCTYPE>
<html>
<head>
<script src="http://chmille4.github.com/Scribl/js/Scribl.1.0.min.js"></script>
<script src="http://chmille4.github.com/Scribl/js/genbankData.js"></script>
<link rel="stylesheet" id="themeCSS" href="http://chmille4.github.com/Scribl/css/iThing.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script src="http://static.tumblr.com/fcdode8/Giymeu17u/jquery.mousewheel.min.js"></script>
<script src="http://static.tumblr.com/fcdode8/WVbmeu18t/jqallrangesliders-min.js"></script>
@chmille4
chmille4 / mouseEvents.html
Created January 25, 2011 23:11
scribl generated chart with event handling
<!DOCTYPE HTML>
<html lang="en">
<head>
<script src="https://github.com/chmille4/Scribl/raw/master/lib/Scribl.events.js" ></script>
<script src="https://github.com/chmille4/Scribl/raw/master/lib/Scribl.gene.js" ></script>
<script src="https://github.com/chmille4/Scribl/raw/master/lib/Scribl.js" ></script>
<link rel="stylesheet" type="text/css" href="../css/demos.css" />
<script>
@chmille4
chmille4 / scribl_demo.js
Created January 13, 2011 18:47
simple demo of scribl bioinformatic charting library
// Get Canvas and Create Chart
var canvas = document.getElementById(canvasName);
// Create Chart with canvas, width
chart = new Scribl(canvas, 500);
// Add Gene with position, length, orientation
gene1 = chart.addGene( 5, 750 , '+');
// Draw Chart
@chmille4
chmille4 / BioRuby_Ace_Parser_Example.rb
Created October 7, 2010 15:36
Ace Parser For BioRuby
require 'bio-assembly'
# ace file path
asm = Bio::Assembly.new("data.ace", :ace)
# iterate through contigs (streams each contig)
asm.each_contig do |contig|
# print name and consensus seq
puts contig.name