# gledguri/air-edna-quant architecture

> Architecture diagram of the GitHub repository gledguri/air-edna-quant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gledguri/air-edna-quant
- Repository: https://github.com/gledguri/air-edna-quant
- Video tour (about a minute): https://gitdiagram.com/gledguri/air-edna-quant/video

## Overview

This is a research-reproducibility repository for a study of passive air sampling and environmental-DNA transfer from water into air. The documented workflow is to use R scripts to clean and transform the raw field and laboratory data, run the Stan joint model, and produce figures; posterior outputs and figures are retained for review alongside the manuscript. The README describes these relationships at folder level, so the graph does not infer calls among individual scripts or model variants.

Main entry points: [`Code`](https://github.com/gledguri/air-edna-quant/tree/main/Code) (R analysis scripts), [`Code/Joined_model.stan`](https://github.com/gledguri/air-edna-quant/blob/main/Code/Joined_model.stan) (Stan joint model), [`Data/Count_data`](https://github.com/gledguri/air-edna-quant/tree/main/Data/Count_data) (Count data), [`Data/qPCR_data`](https://github.com/gledguri/air-edna-quant/tree/main/Data/qPCR_data) (qPCR data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Study data"]
  node_countdata[("Count data")]
  node_qpcrdata[("qPCR data")]
  node_metadata[("Field metadata")]
  node_weather[("Weather metadata")]
end

subgraph group_analysis["Analysis workflow"]
  node_rworkflows["R analysis scripts"]
  node_recursive["Recursive analyses"]
  node_jointmodel["Stan joint model<br/>[Joined_model.stan]"]
  node_diagnostics["Diagnostic plots<br/>[Dianostic_plots.R]"]
end

subgraph group_results["Research outputs"]
  node_posterior[("Posterior outputs")]
  node_figures["Figures"]
  node_manuscript["Study manuscript"]
end

node_researcher(("Researcher"))

node_researcher -->|"runs scripts"| node_rworkflows
node_countdata -->|"provides raw data"| node_rworkflows
node_qpcrdata -->|"provides raw data"| node_rworkflows
node_metadata -->|"provides raw data"| node_rworkflows
node_weather -->|"provides raw data"| node_rworkflows
node_rworkflows -->|"runs model"| node_jointmodel
node_jointmodel -->|"stores posteriors"| node_posterior
node_jointmodel -->|"generates figures"| node_figures
node_rworkflows -->|"includes plotting"| node_diagnostics

click node_countdata "https://github.com/gledguri/air-edna-quant/tree/main/Data/Count_data"
click node_qpcrdata "https://github.com/gledguri/air-edna-quant/tree/main/Data/qPCR_data"
click node_metadata "https://github.com/gledguri/air-edna-quant/tree/main/Data/Metadata"
click node_weather "https://github.com/gledguri/air-edna-quant/tree/main/Data/Weather%20metadata"
click node_rworkflows "https://github.com/gledguri/air-edna-quant/tree/main/Code"
click node_recursive "https://github.com/gledguri/air-edna-quant/tree/main/Code/Recursive"
click node_jointmodel "https://github.com/gledguri/air-edna-quant/blob/main/Code/Joined_model.stan"
click node_diagnostics "https://github.com/gledguri/air-edna-quant/blob/main/Code/Dianostic_plots.R"
click node_posterior "https://github.com/gledguri/air-edna-quant/tree/main/Output"
click node_figures "https://github.com/gledguri/air-edna-quant/tree/main/Plots"
click node_manuscript "https://github.com/gledguri/air-edna-quant/tree/main/Manuscript"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_countdata,node_qpcrdata,node_metadata,node_weather toneBlue
class node_rworkflows,node_recursive,node_jointmodel,node_diagnostics toneAmber
class node_posterior,node_figures,node_manuscript toneMint
class node_researcher toneIndigo
```

## Components

### Study data

- [Count data](https://github.com/gledguri/air-edna-quant/tree/main/Data/Count_data): `Data/Count_data`
- [qPCR data](https://github.com/gledguri/air-edna-quant/tree/main/Data/qPCR_data): `Data/qPCR_data`
- [Field metadata](https://github.com/gledguri/air-edna-quant/tree/main/Data/Metadata): `Data/Metadata`
- [Weather metadata](https://github.com/gledguri/air-edna-quant/tree/main/Data/Weather%20metadata): `Data/Weather metadata`

### Analysis workflow

- [R analysis scripts](https://github.com/gledguri/air-edna-quant/tree/main/Code): `Code`
- [Recursive analyses](https://github.com/gledguri/air-edna-quant/tree/main/Code/Recursive): `Code/Recursive`
- [Stan joint model](https://github.com/gledguri/air-edna-quant/blob/main/Code/Joined_model.stan): `Code/Joined_model.stan`
- [Diagnostic plots](https://github.com/gledguri/air-edna-quant/blob/main/Code/Dianostic_plots.R): `Code/Dianostic_plots.R`

### Research outputs

- [Posterior outputs](https://github.com/gledguri/air-edna-quant/tree/main/Output): `Output`
- [Figures](https://github.com/gledguri/air-edna-quant/tree/main/Plots): `Plots`
- [Study manuscript](https://github.com/gledguri/air-edna-quant/tree/main/Manuscript): `Manuscript`

### Other components

- **Researcher**

## Connections

- Researcher → R analysis scripts: runs scripts (evidence: `README.md`)
- Count data → R analysis scripts: provides raw data (evidence: `README.md`)
- qPCR data → R analysis scripts: provides raw data (evidence: `README.md`)
- Field metadata → R analysis scripts: provides raw data (evidence: `README.md`)
- Weather metadata → R analysis scripts: provides raw data (evidence: `README.md`)
- R analysis scripts → Stan joint model: runs model (evidence: `README.md`)
- Stan joint model → Posterior outputs: stores posteriors (evidence: `README.md`)
- Stan joint model → Figures: generates figures (evidence: `README.md`)
- R analysis scripts → Diagnostic plots: includes plotting (evidence: `README.md`)
