Here’s how I set up my Amazon EC2 instance. Assumes that you already have an Amazon AWS account and some experience with their Dashboard.
~/ec2/key_pair.pem
)Confirm that key is private
chmod 400 key_pair.pem
df -h
to look at storagesudo mkfs -t ext4 /dev/xvdb
lsblk
sudo mkdir /mnt/datasets
sudo mount /dev/xvdb /mnt/datasets
df -h
All right! Now I have a functioning Ubuntu AMI.
Installed some default programs: R, emacs
sudo apt-get update
sudo apt-get install r-base-core
sudo apt-get install emacs
Installed Sailfish binary and set paths in ~.profile
. Had to rename libz.so.1 as noted here to prevent conflicts with other programs: mv /home/ubuntu/software/Sailfish-0.6.3-Linux_x86-64/lib/libz.so.1 /home/ubuntu/software/Sailfish-0.6.3-Linux_x86-64/lib/libz.so.1.bak
While trying to install Emacs-ESS found that polymode had advanced development and could install through Emacs using MELPA
.emacs
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
Started emacs and installed markdown-mode and then polymode by
M-x package-install markdown-mode M-x package-install polymode
Added to .emacs
(require 'poly-R)
(require 'poly-markdown)
;;; MARKDOWN
(add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode))
;;; R modes
(add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb+r-mode))
(add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb+r-mode))
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown+r-mode))
With up-and-running EC2 instance, downloaded trimmed fastq files from https://corelims.uvm.edu/confluence/display/BCP26CAH/Downloads
Started to extract for analysis, but original volume of 200GB wasn’t big enough for extracted fastq files. Had to make a snapshot and then create a new larger volume.
While waiting for AWS stuff, setting up NCBI short read archive for Climate Cascade
Awesome. Using Docker to compare genome assemblers.
This work is licensed under a Creative Commons Attribution 4.0 International License.