Setup
Project Setup
We are going to create a new project to begin:
Go to
File>New ProjectNew DirectoryNew ProjectCreate a name for your project (e.g.
intro-to-16S)Create Project
File Organization
In our project we will need some folders to contain our scripts, data and results:
Click the New Folder icon
Create a folder called data and click ok
Following the same process, create a scripts folder and a results folder
Data & Scripts
Today we will be working with data from Rosshart et al. (2107) where wild-type and laboratory strain mouse microbiomes were assessed. To copy over this data we will enter the following command into the console:
file.copy(from="/cluster/tufts/bio/tools/training/microbiome16S/raw_fastq/",to="./data/", recursive = TRUE)
file.copy(from="/cluster/tufts/bio/tools/training/microbiome16S/meta/metaData.txt",to="./data/", recursive = TRUE)
file.copy(from="/cluster/tufts/bio/tools/training/microbiome16S/silva/silva_nr99_v138.1_train_set.fa.gz",to="./data/")
file.copy(from="/cluster/tufts/bio/tools/training/microbiome16S/scripts/dada2pipeline.Rmd",to="./scripts/")
Now that we have our data and scripts copied, let’s navigate to our scripts folder and open up “dada2pipeline.Rmd”.
Libraries
To run a code chunk in this R markdown file, click the play button at the top right hand side of the code chunk. We will practice by running the code chunk that loads the R libraries we will need for this workshop:
# load our libraries
.libPaths(c('/cluster/tufts/hpc/tools/R/4.0.0',.libPaths()))
library(dada2)
library(phyloseq)
library(ggplot2)
library(DESeq2)
library(tidyverse)
library(phangorn)
library(msa)
