-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
94 lines (66 loc) · 3.39 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures",
out.width = "100%"
)
```
# Demulticoder R package
**This package is actively under development. Until this message has been removed, use with caution. Additional testing, documentation, and examples are in progress.**
### Introduction
The ***demulticoder*** package is a Cutadapt and DADA2 wrapper package for metabarcodng analyses. The main commands and outputs are intuitive and comprehensive, which helps to account for the complex and iterative nature of metabarcoding analyses.
Here is a brief schematic of the general workflow:
```{r workflow-diagram, echo=FALSE, out.width="40%", out.height="40%", fig.align="center"}
knitr::include_graphics("man/figures/rps10_fig1_smaller.drawio.png")
```
### Key features
- The ability to do analysis on either demultiplexed or pooled amplicons within samples
- Amplicons from multiple datasets be trimmed of primers, filtered, denoised, merged, and given taxonomic assignments in one go (with different parameters for each dataset if desired)
- The package handles not just 16S or ITS datasets when using default UNITE fungal or Silva 16S databases but also oomycete rps10 analyses using oomycetedb (https://oomycetedb.org), or up to two custom databases (provided they are formatted as described here: https://benjjneb.github.io/dada2/training.html).
### Installation
To install the development version of package:
```{r, eval=FALSE, echo=TRUE}
devtools::install_github("grunwaldlab/demulticoder")
```
### Quick start
**1. Set-up input directory and files**
After installing the package, make a data directory and add the following files:
- PE short read amplicon data. The files must end in either *_R1.fastq.gz* , or *_R2.fastq.gz* and each sample must have both R1 and R2 files.
- [**metadata.csv**](https://github.com/grunwaldlab/demulticoder/blob/main/inst/extdata/metadata.csv) file (there will be a unique row for each sample, and samples will be entered twice if they contain pooled amplicions, as in the example template)
- [**primerinfo_params.csv**](https://github.com/grunwaldlab/demulticoder/blob/main/inst/extdata/primerinfo_params.csv) file (there will be a new row for each unique barcode and associated primer sequences, and there are also optional Cutadapt, DADA2 or filtering parameters that can be added or adjusted)
**2. Prepare reads**
```{r, eval=FALSE, echo=TRUE}
output<-prepare_reads(
data_directory = "<DATADIR>",
output_directory = "<OUTDIR>")
```
**3. Cut and trim reads**
```{r, eval=FALSE, echo=TRUE}
cut_trim(
output,
cutadapt_path="<CUTADAPTPATH>")
```
**4. Make ASV abundance matrix**
```{r, eval=FALSE, echo=TRUE}
make_asv_abund_matrix(
output)
```
**5. Assign taxonomy**
```{r, eval=FALSE, echo=TRUE}
assign_tax(
output,
asv_abund_matrix)
```
**6. Convert ASV matrix to taxmap and phyloseq objects**
```{r, eval=FALSE, echo=TRUE}
objs<-convert_asv_matrix_to_objs(output)
```
### Check out the website to view the documentation and see more examples
For more information, key functions, inputs, and example vignettes, check out the documentation at: https://grunwaldlab.github.io/demulticoder
### Citation
The package was developed by Martha Sudermann, Zachary Foster, Samantha Dawson, Hung Phan, Jeff Chang, and Niklaus Grünwald
Stay tuned for associated manuscript.