This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/d3.min.js"> | |
</script> | |
<style type="text/css"> | |
body { | |
font: 10px sans-serif; | |
} | |
circle { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Eragrostis ciliaris dry-after ripening germination data | |
var data = [{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":0,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":1,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":4,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":8,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":14,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"0630∞/days","days":28,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":0,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":5,"germ":0}, | |
{"temp":"30∞C","RH":20,"ddays":"1260∞/days","days":9,"germ":0}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Eragrostis ciliaris dry-after ripening germination data | |
var ddays = ["0630°/days","1260°/days","1890°/days","2520°/days"]; | |
var RH = [20, 35, 50, 65]; | |
var data = [{"temp":"30°C","RH":20,"ddays":"0630°/days","days":0,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":1,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":4,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":8,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":14,"germ":0}, | |
{"temp":"30°C","RH":20,"ddays":"0630°/days","days":28,"germ":0}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- forked to enable viewing in bl.ocks.org - filename changed to index.html --> | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="c" style="width:500px; height:500px; background-color: grey"> | |
</canvas> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bio' | |
# load sequences, reverse-complement-align the pairs | |
seqs = {} | |
# get all .seq files | |
Dir.chdir('../raw') do | |
Dir['*.seq'].each do |file| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# clean up bibtex files by removing unwanted fields, | |
# replacing troublesome strings and removing bad | |
# characters | |
removefields = ['copyright'] | |
removeregexes = removefields.map { |x| Regexp.new("#{x} =") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US"> | |
<info> | |
<title>Biology.SE</title> | |
<id>http://phyta.org/biology-stackexchange-style</id> | |
<link href="https://gist.github.com/Blahah/5681588" rel="self"/> | |
<author> | |
<name>Richard Smith</name> | |
<email>[email protected]</email> | |
</author> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:arg=>["-q"], :desc=>"query input files are FASTQ .fq/.fastq (default)"} | |
{:arg=>["-f"], :desc=>"query input files are (multi-)FASTA .fa/.mfa"} | |
{:arg=>["-r"], :desc=>"query input files are raw one-sequence-per-line"} | |
{:arg=>["-c"], :desc=>"query sequences given on cmd line (as <mates>, <singles>)"} | |
{:arg=>["-C"], :desc=>"reads and index are in colorspace"} | |
{:arg=>["-Q", "--quals"], :type=>:string, :desc=>"QV file(s) corresponding to CSFASTA inputs; use with -f -C"} | |
{:arg=>["--Q1", "--Q2"], :type=>:string, :desc=>"same as -Q, but for mate files 1 and 2 respectively"} | |
{:arg=>["-s", "--skip"], :type=>:integer, :desc=>"skip the first <int> reads/pairs in the input"} | |
{:arg=>["-u", "--qupto"], :type=>:integer, :desc=>"stop after first <int> reads/pairs (excl. skipped reads)"} | |
{:arg=>["-5", "--trim5"], :type=>:integer, :desc=>"trim <int> bases from 5' (left) end of reads"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
$ranges = { | |
:k => (21..90).step(4).to_a, | |
:d => (1..10).to_a | |
} | |
def nested_loop(index, opts) | |
if index == $ranges.length | |
# run command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<script src="http://mbostock.github.com/d3/d3.v2.js?2.8.1"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
rect { |
OlderNewer