How gledguri/quantitative-multispecies-edna works
This repository is a reproducible multispecies eDNA analysis pipeline: obtain input data and sequencing reads, prepare qPCR/metabarcoding data, fit a joint calibration-and-abundance model, spatially smooth concentration estimates, and produce manuscript figures. The README documents the analysis stages and their artifacts; only the SRA download and FASTQ concatenation implementations were excerpted, so other workflow links reflect README evidence rather than inspected notebook code.
Main entry points: 1_Run_QM_qPCR.qmd Joint model workflow · 0_Download_data.R Download setup · 2_sdmTMB_smooths_13sp.qmd Spatial smooth fitting · download_sra.py SRA downloader
Components 19
Data acquisition
- Download setup
code/0_Download_data.R - SRA downloader
code/sra_python/download_sra.py - FASTQ concatenator
code/sra_python/concatenate_fastq.py
Joint inference
- Input preparation
code/load_QM-qPCR_data.R - Cleaning and QC
code/qm_data_prep_functions.R - Joint model workflow
code/1_Run_QM_qPCR.qmd - Joint qPCR metabarcoding model
code/Stan_models/Joint_model.stan - Mock calibration model
code/Stan_models/Mock_model.stan - Saved calibration fit
code/Stan_models/Mock_model.rds
Spatial mapping
- Spatial smooth fitting
code/2_sdmTMB_smooths_13sp.qmd - Smoothing helpers
code/smoothers.R
Figure production
- Manuscript figures
code/3_All_Figures.qmd - Final figures
plots - External-software figures
raw_plots
Other components
- Analyst
- Zenodo data
- NCBI SRA
- Cached analysis outputs
- Downloaded FASTQ reads
Connections 24
- Analyst → Download setup: runs first
README.md - Download setup → Zenodo data: downloads data
README.md - Download setup → SRA downloader: calls
README.md - NCBI SRA → SRA downloader: provides metadata
code/sra_python/download_sra.py - SRA downloader → Downloaded FASTQ reads: downloads reads
code/sra_python/download_sra.py - Download setup → FASTQ concatenator: calls
README.md - Downloaded FASTQ reads → FASTQ concatenator: reads files
code/sra_python/concatenate_fastq.py - FASTQ concatenator → Downloaded FASTQ reads: writes combined reads
code/sra_python/concatenate_fastq.py - Zenodo data → Input preparation: supplies inputs
README.md - Input preparation → Cleaning and QC: uses utilities
- Analyst → Joint model workflow: renders
README.md - Joint model workflow → Input preparation: loads inputs
README.md - Joint model workflow → Joint qPCR metabarcoding model: fits model
README.md - Joint model workflow → Mock calibration model: runs calibration
README.md - Joint model workflow → Saved calibration fit: reuses fit
README.md - Joint model workflow → Cached analysis outputs: writes estimates
README.md - Analyst → Spatial smooth fitting: renders
README.md - Cached analysis outputs → Spatial smooth fitting: provides concentrations
README.md - Spatial smooth fitting → Smoothing helpers: uses functions
- Spatial smooth fitting → Cached analysis outputs: writes smooths
README.md - Analyst → Manuscript figures: renders
README.md - Cached analysis outputs → Manuscript figures: provides model outputs
README.md - Manuscript figures → Final figures: produces figures
README.md - External-software figures → Analyst: provides provenance figures
README.md