bigbio/sdrf-agentic-annotator annotates PRIDE datasets with SDRF. It runs the bigbio/sdrf-skills workflow in Nextflow agent tasks.
PXD ──► SDRF_ANNOTATE ──► SDRF_COVERAGE ──► SDRF_REVIEW ──► PASS ──────────────────────────────────────────────────► <outdir>/<PXD>/
└──► FAIL ──► SDRF_REVISE ──► SDRF_COVERAGE ──► SDRF_REVIEW ──► <outdir>/<PXD>/revised/
SDRF_ANNOTATEcreates and validates the SDRF and an evidence manifest. It uses the skillsdrf-annotate.SDRF_COVERAGEchecks every data file in the SDRF against the PRIDE deposit and measures how much of the deposit the SDRF covers.SDRF_REVIEWreviews the SDRF in a fresh context, with the coverage report. It uses the skillsdrf-adversarial-review.- If the review fails,
SDRF_REVISEfixes the findings, andSDRF_REVIEWreviews the revised SDRF again. This happens once by default and up to twice with--max_revise 2. Use--revise falseto skip this step. summary.tsvlists the initial and final verdict, confidence and coverage of each PXD.
Warning
Nextflow agents are a preview feature. The syntax and behavior can change in future Nextflow releases.
This pipeline runs its LLM agents inside a container image, so you must pick a container
profile: docker for a local machine or CI, or singularity/apptainer on an HPC cluster
without root (see docs/usage.md for the differences).
-
Make a samplesheet with one PXD accession per row:
pxd PXD074155 -
Store the API key of your LLM provider as the Nextflow secret
LLM_KEY:nextflow secrets set LLM_KEY <your-api-key>
One single key is enough: the pipeline delivers it to whichever provider
--api_providerselects. See docs/usage.md for which key value a provider expects (a Google/OpenAI/Anthropic key for built-in providers, or your org's gateway token for an OpenAI-compatible gateway such as the EBI AI Gateway). -
Run the pipeline:
nextflow run bigbio/sdrf-agentic-annotator -profile docker --input samplesheet.csv --outdir <OUTDIR>
On an HPC node, use
-profile singularity(or-profile apptainer) instead ofdocker.
To test the pipeline with one PXD, use -profile test,docker.
--refine refines an SDRF that already exists in
bigbio/sdrf-annotated-datasets and only
accepts the refined version if it is strictly better annotated (same independent review, scored
on verdict/confidence + coverage, with coverage not worse). The samplesheet can give a
ref_sdrf path per PXD, or the pipeline downloads the existing SDRF from sdrf-annotated-datasets
with sdrf-tools curated.
nextflow run bigbio/sdrf-agentic-annotator -profile docker \
--input refine.csv --outdir <OUTDIR> --refineThe chosen SDRF (refined if accepted, otherwise the existing one) is published per PXD as
<PXD>.sdrf.tsv, with its evidence manifest, review and coverage report, and a
<PXD>.refine_verdict.json explaining the decision. See docs/usage.md (§ Refine
mode) and docs/output.md.
See docs/usage.md for all options and docs/output.md for the output files.
bigbio/sdrf-agentic-annotator was originally written by Jonas Scheid (as
jonasscheid/nf-agent-sdrf) and is maintained in the bigbio organisation. The annotation and
review logic comes from bigbio/sdrf-skills. The skills
in modules/local/*/skills/ are copies of bigbio/sdrf-skills (sdrf_annotate and sdrf_review
at commit 5f5966b), under the MIT licence in the LICENSE file next to them.
The pipeline structure follows the nf-core guidelines, but it is not an nf-core pipeline.
See the contributing guidelines. Report bugs and ask for features in the GitHub issues.
CITATIONS.md lists the tools and resources that the pipeline uses.