- Use AMI
Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - ami-005bdb005fb00e791 (64-bit x86)
- At least a
t2.medium
- At least 30 GB Root volume
- Set up TCP port 22 and port 8787 (RStudio server) access for my IP
- Tag with
Name
=turbo-rstudio
- Use the
turbo-rstudio
keypair- You already have this
.pem
file in your~/Downloads/
dir, already didchmod 0400
- You already have this
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
library(tidyverse) | |
shared_file <- read_tsv("data/mothur/kws_final.an.shared") %>% | |
select(-label, -numOtus) %>% | |
# melt, onvert to relative abundance | |
gather("OTU", "abundance", starts_with("Otu")) %>% | |
group_by(Group) %>% | |
mutate(abundance = abundance / sum(abundance)) %>% ungroup | |
tax_file <- read_tsv("data/mothur/kws_final.an.cons.taxonomy") %>% select(-Size) %>% |