Zum Inhalt springen
Skillpedia
Analyse & Tabellen51k · #3550

qiime2-amplicon

Was er macht

Dieses Tool verarbeitet genetische Sequenzen (16S-Amplicon-Reads), um taxonomische Einheiten (ASVs) und ihre Klassifikationen zu identifizieren, und protokolliert alle Schritte genau. Es prüft, ob die Eingabedaten korrekt und mit der Software QIIME 2 kompatibel sind.

Wann du ihn nutzt

  • ✓Wenn du DNA-Sequenzen aus Umwelt- oder Bioproben analysierst.
  • ✓Wenn du herausfinden willst, welche Bakterienarten in einer Probe vorkommen.
  • ✓Wenn du bereits Rohdaten aus einer Sequenzierung hast und sie für die Analyse ordnen willst.

Link zum Skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/qiime2-amplicon/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/qiime2-amplicon/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte meine 16S-Amplicon-Sequenzen analysieren. Meine Dateien heißen 'sample1_R1.fastq.gz' und 'sample1_R2.fastq.gz', und ich habe eine Metadatendatei 'metadata.tsv'. Die verwendeten Primer waren GTGYCAGCMGCCGCGGTAA (vorwärts) und GGACTACNVGGGTWTCTAAT (rückwärts). Ich möchte die Sequenzen auf 220 (vorwärts) und 200 (rückwärts) Basen kürzen, und die erwartete maximale Länge beträgt 300 Basen. Der Classifier, den ich habe, heißt 'classifier.qza'.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool prüft zuerst, ob deine Datendateien (Manifest und Metadaten) und die Primer-Angaben korrekt sind. Dann verarbeitet es die Sequenzen mit der Software QIIME 2, entfernt die Primer, identifiziert taxonomische Einheiten und weist Klassifikationen zu, und protokolliert dabei alles.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

QIIME 2 paired-end 16S amplicons

Use for a demultiplexed, paired-end 16S assay with known primers, quality encoding, expected insert length, and sample metadata. This bounded workflow imports reads, removes 5′ primers, denoises with DADA2, classifies ASVs using an explicitly supplied classifier, and retains .qza/.qzv provenance. Do not treat read counts as absolute cell counts or taxonomy assignments as strain identification.

Establish the assay before running

  • Confirm Phred+33, read orientation, primer sequences as sequenced in forward/reverse reads, and whether primers have already been removed. The bundled runner requires primers still present at the 5′ ends; it anchors Cutadapt matching and discards untrimmed pairs. Already trimmed reads need a direct import → DADA2 workflow with that omission recorded in provenance.
  • Choose truncation positions from actual per-base quality and error profiles. trunc-f/r are positions after primer removal. The expected maximum insert length also excludes primers. Require trunc_f + trunc_r - maximum_insert_length >= 12; use a margin for length variation. The check predicts geometrical overlap, not successful biological merging.
  • Choose a classifier whose reference database, taxonomic coverage, orientation and training approach fit the assay. Full-length classifiers are supported; primer-region-specific training is not mandatory. Match its scikit-learn version exactly to the installed environment (the official 2026.7 distribution pins 1.7.1). Record source URL, database version and checksum. QIIME's current data-resources page links externally hosted classifiers for 2026.4 and later; its older downloads are not automatically compatible. Do not automatically fetch an arbitrary “latest” classifier or reuse an incompatible serialized sklearn model. Load sklearn classifier artifacts only from trusted sources: QZA format validation does not make an untrusted serialized model safe.
  • Include extraction blanks, PCR negatives, and a mock community where available. The runner rejects empty FASTQs; preserve empty-control IDs separately and report them rather than silently deleting control evidence. Assess contamination before ecological interpretation.

Input files

Manifest is a tab-separated PairedEndFastqManifestPhred33V2 file with exactly these headers:

sample-id	forward-absolute-filepath	reverse-absolute-filepath
sample1	/data/sample1_R1.fastq.gz	/data/sample1_R2.fastq.gz

This is the helper's deliberately narrow manifest profile. Use actual tab characters, literal absolute paths visible to the runtime (expand environment variables before calling this helper), and one row per sample; no comment/directive rows or additional columns in this manifest. Do not reverse-complement R2 files. Sample metadata is a tab-separated file with first column sample-id, unique IDs matching the manifest, and optional #q2:types annotation. Include covariates and biological replicate IDs needed downstream. The helper checks metadata IDs and row structure; QIIME performs full metadata typing/directive validation during execution. Metadata used by actions persists in artifact provenance, so use de-identified biological replicate IDs.

Execute

The helper lives at scripts/amplicon_workflow.py. Commands below assume the skill directory is the working directory. First validate without QIIME. These example primers and lengths are illustrative, not universal assay settings:

python scripts/amplicon_workflow.py validate \
  --manifest manifest.tsv --metadata sample-metadata.tsv \
  --primer-f GTGYCAGCMGCCGCGGTAA --primer-r GGACTACNVGGGTWTCTAAT \
  --trunc-f 220 --trunc-r 200 --amplicon-max 300

Then run in the QIIME 2 2026.7 environment with a compatible classifier. This study-specific invocation is illustrative; choose lengths using a preceding quality inspection or pilot:

python scripts/amplicon_workflow.py run \
  --manifest manifest.tsv --metadata sample-metadata.tsv \
  --primer-f GTGYCAGCMGCCGCGGTAA --primer-r GGACTACNVGGGTWTCTAAT \
  --trunc-f 220 --trunc-r 200 --amplicon-max 300 \
  --classifier compatible-classifier.qza --threads 4 --output run01

run executes immediately, writes only to a fresh output directory, and stops on a failing QIIME command. It streams through every paired FASTQ record to catch mismatched IDs/order/counts,

…

Häufige Fragen

Was sind ASVs?

ASVs (Amplicon Sequence Variants) sind einzigartige genetische Sequenzen, die verschiedene Arten oder Varianten innerhalb einer Art darstellen. Sie sind wie genetische 'Fingerabdrücke'.

Was bedeutet 'Provenance'?

'Provenance' ist das detaillierte Protokoll aller Schritte und Tools, die bei der Verarbeitung deiner Daten verwendet wurden. Es hilft sicherzustellen, dass die Analyse reproduzierbar und verlässlich ist.

Kann ich jede beliebige Classifier-Datei verwenden?

Nein, der Classifier muss zur verwendeten QIIME 2-Version passen und für 16S-Daten geeignet sein. Wichtig ist, einen vertrauenswürdigen Classifier mit der richtigen scikit-learn-Version zu verwenden.

Details

Originalbeschreibung des Autors

Processes paired-end 16S amplicon reads into QIIME 2 ASVs and taxonomy with retained artifact provenance. Checks paired FASTQ manifests, primer orientation diagnostics, predicted post-trimming overlap, sample IDs, runtime versions and read retention, and guides selection of compatible taxonomic classifiers.

repo: K-Dense-AI/scientific-agent-skills

Beliebtheit

GitHub-Sterne
51k
Platz im Ranking
#3550
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills