eDNA Metabarcoding Pipeline - Usage Guide
Overview
Complete environmental DNA metabarcoding workflow from raw amplicon sequences to biodiversity assessment and community ecology. Supports two processing paths: OBITools3 (CLI-based, optimized for eDNA) and DADA2 (R-based, ASV resolution). Includes contamination filtering with decontam, Hill number diversity analysis with iNEXT, and constrained ordination with vegan for community comparison. Handles all common eDNA markers (COI, 12S, ITS, rbcL, 18S).
Prerequisites
# OBITools3 (CLI path)
pip install obitools3
# or conda install -c bioconda obitools3
# General CLI tools
pip install cutadapt
# or conda install -c bioconda cutadapt fastqc multiqc
# R packages (DADA2 path + downstream analysis)
install.packages('BiocManager')
BiocManager::install(c('dada2', 'decontam', 'phyloseq'))
install.packages(c('iNEXT', 'vegan', 'indicspecies'))
# Reference databases (download once, marker-specific):
# COI: BOLD reference library or Midori2
# 12S: MitoFish or 12S-seqdb
# ITS: UNITE (https://unite.ut.ee/)
# 16S/18S: SILVA (https://www.arb-silva.de/)
Input data:
- Demultiplexed paired-end FASTQ files (one pair per sample)
- Sample metadata with sample type (field sample vs. negative control)
- Environmental variables for community analysis (e.g., temperature, depth, site)
- Primer sequences for the target marker
Quick Start
Tell your AI agent what you want to do:
- "I have eDNA amplicon data from river water samples - process it from raw reads to species lists"
- "Run the full eDNA metabarcoding pipeline on my COI amplicon data with OBITools3"
- "Process my 12S MiFish eDNA data through DADA2 and calculate fish diversity"
- "Compare eDNA communities across sampling sites with constrained ordination"
- "Filter contamination from my eDNA dataset using negative controls"
Example Prompts
Full Pipeline
"I have paired-end COI amplicon data from 50 water samples plus 5 negative controls. Process everything from raw FASTQ to species diversity estimates."
"Run the complete eDNA pipeline: trim primers, denoise with DADA2, remove contaminants, assign taxonomy against BOLD, and calculate Hill number diversity."
Specific Steps
"I already have an ASV table from DADA2. Run contamination filtering with decontam using my negative controls, then assign taxonomy."
"Compare fish communities detected by 12S eDNA across upstream and downstream sites using constrained ordination."
Marker-Specific
"Process my fungal ITS2 eDNA data using DADA2 with the UNITE database for taxonomy assignment."
"I have eDNA samples from a marine survey using the MiFish 12S primers. Run the full pipeline optimized for fish detection."
What the Agent Will Do
- Run FastQC and MultiQC on raw reads to assess quality
- Remove primer sequences with Cutadapt (marker-specific primers)
- Validate: check reads per sample >1000, negative controls <100 reads
- Merge paired ends and denoise (OBITools3 or DADA2 depending on preference)
- Remove chimeric sequences
- Validate: check chimera rate <20%, ASV count reasonable for marker
- Filter contamination using negative controls (decontam prevalence method)
- Remove tag-jumping artifacts
- Validate: negative controls clean after filtering
- Assign taxonomy using marker-appropriate reference database
- Validate: assignment rate meets marker expectations
- Calculate Hill number diversity (q=0, 1, 2) with iNEXT
- Validate: rarefaction approaching asymptote, sample completeness >80%
- Run constrained ordination (RDA or CCA) and indicator species analysis
- Export species table, diversity metrics, and ordination plots
Tips
- Always include negative controls (extraction blanks and PCR blanks) for contamination filtering
- OBITools3 is optimized for eDNA workflows and handles tag-jumping natively; DADA2 provides ASV-level resolution
- Primer removal is critical: untrimmed primers cause artificial diversity inflation
- Tag-jumping (index hopping) is a major concern for eDNA on Illumina platforms; always apply the 0.1% threshold filter
- Taxonomy assignment quality depends heavily on reference database completeness; COI/BOLD gives best species-level results for animals
- Hill numbers provide a unified diversity framework: q=0 (richness), q=1 (Shannon equivalent), q=2 (Simpson equivalent)
- Use DCA gradient length to choose between RDA (linear, <3 SD) and CCA (unimodal, >3 SD)
- For degraded eDNA (e.g., sediment cores), relax DADA2 maxEE to c(5,5) and reduce truncLen
- Increase sequencing depth for samples with low completeness rather than lowering quality thresholds
Related Skills
- ecological-genomics/edna-metabarcoding - Detailed eDNA processing
- ecological-genomics/biodiversity-metrics - Diversity analysis details
- ecological-genomics/community-ecology - Ordination and indicator species
- read-qc/quality-reports - Raw read quality assessment
- microbiome/amplicon-processing - 16S clinical alternative
1---2name: 266-usage-guide-d5b8c5d03description: eDNA Metabarcoding Pipeline - Usage Guide4---5# eDNA Metabarcoding Pipeline - Usage Guide67## Overview8Complete environmental DNA metabarcoding workflow from raw amplicon sequences to biodiversity assessment and community ecology. Supports two processing paths: OBITools3 (CLI-based, optimized for eDNA) and DADA2 (R-based, ASV resolution). Includes contamination filtering with decontam, Hill number diversity analysis with iNEXT, and constrained ordination with vegan for community comparison. Handles all common eDNA markers (COI, 12S, ITS, rbcL, 18S).910## Prerequisites11```bash12# OBITools3 (CLI path)13pip install obitools314# or conda install -c bioconda obitools31516# General CLI tools17pip install cutadapt18# or conda install -c bioconda cutadapt fastqc multiqc1920# R packages (DADA2 path + downstream analysis)21install.packages('BiocManager')22BiocManager::install(c('dada2', 'decontam', 'phyloseq'))23install.packages(c('iNEXT', 'vegan', 'indicspecies'))2425# Reference databases (download once, marker-specific):26# COI: BOLD reference library or Midori227# 12S: MitoFish or 12S-seqdb28# ITS: UNITE (https://unite.ut.ee/)29# 16S/18S: SILVA (https://www.arb-silva.de/)30```3132**Input data:**33- Demultiplexed paired-end FASTQ files (one pair per sample)34- Sample metadata with sample type (field sample vs. negative control)35- Environmental variables for community analysis (e.g., temperature, depth, site)36- Primer sequences for the target marker3738## Quick Start39Tell your AI agent what you want to do:40- "I have eDNA amplicon data from river water samples - process it from raw reads to species lists"41- "Run the full eDNA metabarcoding pipeline on my COI amplicon data with OBITools3"42- "Process my 12S MiFish eDNA data through DADA2 and calculate fish diversity"43- "Compare eDNA communities across sampling sites with constrained ordination"44- "Filter contamination from my eDNA dataset using negative controls"4546## Example Prompts4748### Full Pipeline49> "I have paired-end COI amplicon data from 50 water samples plus 5 negative controls. Process everything from raw FASTQ to species diversity estimates."5051> "Run the complete eDNA pipeline: trim primers, denoise with DADA2, remove contaminants, assign taxonomy against BOLD, and calculate Hill number diversity."5253### Specific Steps54> "I already have an ASV table from DADA2. Run contamination filtering with decontam using my negative controls, then assign taxonomy."5556> "Compare fish communities detected by 12S eDNA across upstream and downstream sites using constrained ordination."5758### Marker-Specific59> "Process my fungal ITS2 eDNA data using DADA2 with the UNITE database for taxonomy assignment."6061> "I have eDNA samples from a marine survey using the MiFish 12S primers. Run the full pipeline optimized for fish detection."6263## What the Agent Will Do641. Run FastQC and MultiQC on raw reads to assess quality652. Remove primer sequences with Cutadapt (marker-specific primers)663. Validate: check reads per sample >1000, negative controls <100 reads674. Merge paired ends and denoise (OBITools3 or DADA2 depending on preference)685. Remove chimeric sequences696. Validate: check chimera rate <20%, ASV count reasonable for marker707. Filter contamination using negative controls (decontam prevalence method)718. Remove tag-jumping artifacts729. Validate: negative controls clean after filtering7310. Assign taxonomy using marker-appropriate reference database7411. Validate: assignment rate meets marker expectations7512. Calculate Hill number diversity (q=0, 1, 2) with iNEXT7613. Validate: rarefaction approaching asymptote, sample completeness >80%7714. Run constrained ordination (RDA or CCA) and indicator species analysis7815. Export species table, diversity metrics, and ordination plots7980## Tips81- Always include negative controls (extraction blanks and PCR blanks) for contamination filtering82- OBITools3 is optimized for eDNA workflows and handles tag-jumping natively; DADA2 provides ASV-level resolution83- Primer removal is critical: untrimmed primers cause artificial diversity inflation84- Tag-jumping (index hopping) is a major concern for eDNA on Illumina platforms; always apply the 0.1% threshold filter85- Taxonomy assignment quality depends heavily on reference database completeness; COI/BOLD gives best species-level results for animals86- Hill numbers provide a unified diversity framework: q=0 (richness), q=1 (Shannon equivalent), q=2 (Simpson equivalent)87- Use DCA gradient length to choose between RDA (linear, <3 SD) and CCA (unimodal, >3 SD)88- For degraded eDNA (e.g., sediment cores), relax DADA2 maxEE to c(5,5) and reduce truncLen89- Increase sequencing depth for samples with low completeness rather than lowering quality thresholds9091## Related Skills92- ecological-genomics/edna-metabarcoding - Detailed eDNA processing93- ecological-genomics/biodiversity-metrics - Diversity analysis details94- ecological-genomics/community-ecology - Ordination and indicator species95- read-qc/quality-reports - Raw read quality assessment96- microbiome/amplicon-processing - 16S clinical alternative