# Getting started

ampliconflow turns public 16S runs into a citable release: one directory per study, with counts, taxonomy, metadata, a manifest and the analyses the site renders.

## Find what you need

1. **Studies** (`/studies/`) lists every release. Filter by sample tag or free text, sort, switch
   between cards and the table view, and download the current selection as TSV. Each card opens the
   study page: methods, composition, samples, analyses and downloads.
2. **Map** (home) shows every sample that carries coordinates. Colour by study, by sample type
   (soil, sediment, marine, freshwater, human saliva, ...), or single colour. "export TSV" writes the
   samples inside the current viewport.
3. **Taxa** (`/taxa/`) pools every release by rank and gives each taxon its own page: reads, the
   studies it occurs in, a map, and an export of that table.
4. **Downloads** (`/downloads/`) covers the collection as a whole: sizes, the files a release
   carries, and how to mirror or query it.

## Take the data

Every file is on a public object store. A release is the citable unit:

```
# one release, everything in it
huggingface-cli download hmacgregor/ampliconflow-releases --include "PRJNA361046-20260926/*" --local-dir ./releases
```

Read a table without downloading it, straight from the URL:

```python
import pyarrow.parquet as pq
base = "https://huggingface.co/datasets/hmacgregor/ampliconflow-releases/resolve/main/"
counts = pq.read_table(base + "PRJNA361046-20260926/tables/PRJNA361046.counts.parquet").to_pandas()
```

## What is in a release

| file | what it holds |
|---|---|
| `manifest.json` | every file, its sha256, the licence, the pipeline version, the study accession |
| `summary.json` | counts, per-sample reads, taxonomy by rank, QC, the methods block |
| `tables/*.parquet` | the sample by feature count table |
| `features.parquet` | one row per ASV, with the taxonomy at each rank |
| `samples.parquet`, `runs.parquet` | the metadata the archive published |
| `qc/`, `sequences/` | per-run QC reports and the reference sequences |

## Reuse it

- Check the **licence** on the release (mostly CC-BY-4.0, inherited from the archive record).
- Cite the release directory and the originating archive record; see `/docs/citation/`.
- The counts are ASVs denoised from public reads. The manifest records pipeline versions, so a comparison across releases can state what produced each table.

## Contribute a study

If a study is missing, the Suggest data button records the accession and what you need. A run is published only after the gate: reads that are not 16S are dropped and the reason is recorded.
