Title: Unix Primer for Biologists Authors: Keith Bradnam & Ian Korf Date: September 27, 2012 Web: unixandperl.com Address: Genome Center, UC Davis, Davis, CA, 95616
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
# 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
# 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
set_prompt () { | |
Last_Command=$? # Must come first! | |
Blue='\[\e[01;34m\]' | |
White='\[\e[01;37m\]' | |
Red='\[\e[01;31m\]' | |
Green='\[\e[01;32m\]' | |
Reset='\[\e[00m\]' | |
FancyX='\342\234\227' | |
Checkmark='\342\234\223' |
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
Transrate assembly and contig plots. | |
======================================================== | |
Assemblies of mouse with 10, 20, 50 and 100 million reads. | |
# Assembly-level stats | |
## Load data | |
```{r} |
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
[WARNING] Assembly file: /home/vagrant/ami2-poc/target/ami2-poc-0.0.2-SNAPSHOT-bin is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment. | |
[INFO] | |
[INFO] --- jdeb:1.3:jdeb (default) @ ami2-poc --- | |
Downloading: http://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar | |
Downloading: http://repo.maven.apache.org/maven2/com/google/guava/guava/10.0.1/guava-10.0.1.jar | |
Downloading: http://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar | |
Downloaded: http://repo.maven.apache.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar (33 KB at 230.3 KB/sec) | |
Downloaded: http://repo.maven.apache.org/maven2/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar (0 B at 0.0 KB/sec) | |
Downloaded: http://repo.maven.apache.org/maven2/com/google/guava/guava/10.0.1/guava-10.0.1.jar (1467 KB at 2242.2 KB/sec) | |
[INFO] Creating debian package: /home/vagrant/ami2-poc/target/ami2-poc_0.0.2~SNAPSHOT_all.deb |
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
## ContentMine VM setup script | |
echo password | sudo -S apt-get update -y | |
## Java 7 | |
sudo apt-get install -y openjdk-7-jdk | |
sudo update-alternatives --config java | |
sudo update-alternatives --config javac | |
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": "article", | |
"publisher": { | |
"name": "Public Library of Science (PLoS)" | |
}, | |
"journal": { | |
"issn": "1932-6203", | |
"name": "PLoS ONE", | |
"volume": "1", | |
"issue": "5", |
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 | |
# This is a game that helps people understand genome assembly. Given a string, | |
# it generates sequence reads giving perfect coverage of the string and with a | |
# fixed overlap. The idea is to print the generated reads, cut them out, and | |
# have learners assemble them by hand. Different difficulties can be | |
# demonstrated by using a string with repeats, low complexity, etc., to mimic | |
# real assembly problems, or by adjusting the parameters (overlap and number | |
# of fragments). |