qiime2-amplicon
Skill này làm gì
Công cụ này xử lý các chuỗi gen (đọc amplicon 16S) để xác định các đơn vị phân loại (ASV) và phân loại của chúng, đồng thời ghi lại chi tiết mọi bước. Nó kiểm tra dữ liệu đầu vào có đúng và tương thích với phần mềm QIIME 2 hay không.
Khi nào nên dùng
- ✓Khi bạn phân tích chuỗi DNA từ mẫu môi trường hoặc mẫu sinh học.
- ✓Khi bạn cần xác định các loài vi khuẩn khác nhau trong một mẫu.
- ✓Khi bạn đã có dữ liệu giải trình tự thô và muốn sắp xếp để phân tích.
Liên kết skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/qiime2-amplicon/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn phân tích các chuỗi amplicon 16S. File của tôi là “sample1_R1.fastq.gz” và “sample1_R2.fastq.gz”, và có file siêu dữ liệu “metadata.tsv”. Các primer dùng là GTGYCAGCMGCCGCGGTAA (xuôi) và GGACTACNVGGGTWTCTAAT (ngược). Tôi muốn cắt chuỗi còn 220 bazơ (xuôi) và 200 bazơ (ngược), độ dài tối đa dự kiến là 300 bazơ. Bộ phân loại của tôi là “classifier.qza”.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ trước tiên kiểm tra xem các file dữ liệu (manifest và metadata) và thông tin primer có đúng không. Sau đó, nó dùng phần mềm QIIME 2 để xử lý chuỗi, loại bỏ primer, xác định các đơn vị phân loại và gán phân loại, đồng thời lưu lại lịch sử mọi thao tác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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/rare positions after primer removal. The expected maximum insert length also excludes primers. Requiretrunc_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,
…
Câu hỏi thường gặp
ASV là gì?
ASV (Amplicon Sequence Variants) là các chuỗi gen duy nhất, đại diện cho những loài khác nhau hoặc biến thể trong cùng một loài. Chúng giống như “dấu vân tay” di truyền.
“Provenance” là gì?
“Provenance” là bản ghi chi tiết về mọi bước và công cụ đã dùng để xử lý dữ liệu. Nó giúp đảm bảo việc phân tích có thể lặp lại và đáng tin cậy.
Tôi có thể dùng bất kỳ file bộ phân loại nào không?
Không, bộ phân loại phải tương thích với phiên bản QIIME 2 bạn đang dùng và phù hợp với dữ liệu 16S. Quan trọng là dùng bộ phân loại đáng tin cậy với đúng phiên bản scikit-learn.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 51k
- Vị trí xếp hạng
- #3550
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
13c-metabolic-flux
51kƯớc tính thông lượng chuyển hóa bằng dữ liệu theo dõi đồng vị carbon-13. Hữu ích để phân tích chuyển hóa tế bào và các con đường sinh hóa.
adaptyv
51kThiết kế thí nghiệm đặc trưng protein bằng Adaptyv API. Hỗ trợ ước tính chi phí, gửi trình tự và theo dõi kết quả phòng thí nghiệm.
aeon
51kThực hiện các tác vụ học máy trên dữ liệu chuỗi thời gian. Hữu ích để phân loại, dự báo, phát hiện bất thường và tìm mẫu trong dữ liệu tuần tự.
alphagenome
51kTra cứu các tác động di truyền đã được tính trước cho biến thể gen. Cung cấp điểm số và giải thích để hiểu ảnh hưởng của biến thể lên bộ gen.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.