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
| # install basic tools | |
| sudo apt-get install -y curl build-essential | |
| # install NVM | |
| curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash | |
| . /home/vagrant/.profile | |
| # install Node.js | |
| nvm install v0.10.30 | |
| nvm use 0.10 |
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
| # Ask for the administrator password upfront | |
| sudo -v | |
| # homebrew | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| brew doctor | |
| # Ruby Version Manager & latest Ruby | |
| \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
| source ~/.rvm/scripts/rvm |
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
| # Type representing a Markov chain generator. | |
| # It stores an array of the possible states in the chain, | |
| # and a transition matrix defining the probabilities | |
| # of moving from one state to another. | |
| type MarkovGenerator | |
| states::Array{Int} | |
| transmat::Array{Float64} | |
| end | |
| # Given the current state, get the next state of a Markov chain |
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 | |
| # | |
| # trim-batch | |
| # | |
| # Take in a set of fastq files and run trimmomatic on each | |
| # | |
| # You MUST specify the location of the trimmomatic JAR | |
| # | |
| # Richard Smith-Unna (rds45@cam.ac.uk) |
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 'csv' | |
| require 'rubygems' | |
| require 'trollop' | |
| class Express | |
| attr_accessor :bundle_id,:target_id,:length,:eff_length,:tot_counts,:uniq_counts | |
| attr_accessor :est_counts,:eff_counts,:ambig_distr_alpha,:ambig_distr_beta,:fpkm | |
| attr_accessor :fpkm_conf_low,:fpkm_conf_high,:solvable,:tpm |
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
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300006/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300007/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300008/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300009/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300010/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300011/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300012/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300013/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300014/pdf | |
| http://onlinelibrary.wiley.com/doi/10.1002/zoos.201300015/pdf |
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
| apt-get install -y software-properties-common build-essential python-software-properties libfontconfig1 git | |
| add-apt-repository -y ppa:chris-lea/node.js | |
| apt-get update | |
| apt-get install -y nodejs | |
| npm install --global quickscrape | |
| \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
| gem install trollop | |
| git clone https://github.com/ContentMine/journal-scrapers.git |
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
| # have your URLs in a file called URLS | |
| parallel -j1 curl -v 'http://api.bit.ly/shorten?version=2.0.1\&longUrl={}\&login=bitlyapidemo\&apiKey=ABC123' < URLS |
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
| echo "installing phantomJS" | |
| if [ `getconf LONG_BIT` = "64" ] | |
| then | |
| echo "64-bit system detected" | |
| PHANTOMVER=phantomjs-1.9.7-linux-x86_64 | |
| else | |
| echo "32-bit system detected" | |
| PHANTOMVER=phantomjs-1.9.7-linux-i686 | |
| fi | |
| wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMVER.tar.bz2 && \ |
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 [[ $(uname -v) =~ Debian ]]; then | |
| echo "Debian detected: installing backports" | |
| echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list | |
| apt-get update | |
| apt-get install -y nodejs | |
| apt-get install -y nodejs-legacy | |
| curl --insecure https://www.npmjs.org/install.sh | bash | |
| fi | |
| if [[ $(uname -v) =~ Ubuntu ]]; then | |
| echo "Ubuntu detected: using Chris Lea's PPA repo" |