- Panton Fellowship from the OKFN - funds individuals for one year to support promotion of openness.
- Center for Open Science grants - funds for projects (e.g. open source software) that promote or enable good open scientific practices. [via @rmounce]
- Alfred P. Sloan Foundation Digital Information Tech grants - funds for projects to support:
- data-intensive science
- utilisation of open data
- digitising and enabling access to knowledge [via @rmounce]
This file contains hidden or 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
# bash colours | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# define colors | |
C_DEFAULT="\[\033[m\]" | |
C_WHITE="\[\033[1m\]" | |
C_BLACK="\[\033[30m\]" | |
C_RED="\[\033[31m\]" | |
C_GREEN="\[\033[32m\]" |
This file contains hidden or 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
if ("devtools" %in% loadedNamespaces()) { | |
stop("You must restart R before installing devtools") | |
} | |
url <- "https://github.com/hadley/devtools/archive/v1.4.1.zip" | |
temp <- file.path(tempdir(), "devtools.zip") | |
setInternet2(TRUE) | |
suppressWarnings(download.file(url, temp, mode = "wb")) | |
install.packages(temp, repos = NULL) |
This file contains hidden or 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
# convert transcript ID to gene ID | |
df <- data.frame(a = c("AT1G2.1", "AT1G2.3", "AT1G2.3", "AT1G3.1", "AT1G3.3", "AT1G3.3"), b=1:6) | |
df$t <- gsub(df$a, pattern="\\.[0-9]+", replacement="") | |
# sum by gene ID | |
aggregate(df[,2], by=list(as.factor(df$t)), sum) |
- RVM with latest Ruby (http://rvm.io/ - to install:
\curl -sSL https://get.rvm.io | bash -s stable --ruby
). - BLAST+ (latest version)
- Bowtie2 (latest version)
- CD-HIT (http://www.bioinformatics.org/project/filelist.php?group_id=350)
- eXpress 1.5.1 (http://bio.math.berkeley.edu/eXpress/overview.html)
- SoapDenovoTrans, fixed version from GitHub (https://github.com/cboursnell/SOAPdenovo-Trans)
This file contains hidden or 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
#! /udr/bin/env ruby | |
require 'twitter' | |
require 'rmagick' | |
require 'open-uri' | |
# set up the twitter client | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = # redacted | |
config.consumer_secret = # redacted |
This file contains hidden or 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 | |
require 'bio' | |
require 'inline' | |
require 'benchmark' | |
require 'trollop' | |
class TestC |
This file contains hidden or 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
# This is the default configuration file. Enabling and disabling is configured | |
# in separate files. This file adds all other parameters apart from Enabled. | |
inherit_from: | |
- enabled.yml | |
- disabled.yml | |
# Common configuration. | |
AllCops: | |
# Include gemspec and Rakefile |
This file contains hidden or 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
class Combinator | |
include Enumerable | |
def initialize parameters | |
@parameters = parameters | |
end | |
def generate_combinations(index, opts, &block) | |
if index == @parameters.length |
This file contains hidden or 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/exec node | |
var Spooky = require('spooky'); | |
var dom = require('jsdom').jsdom; | |
var xpath = require('jsdom-xpath'); | |
// Set up the spooky agent to retrieve URLs | |
var spooky = new Spooky({ | |
child: { | |
transport: 'http' |