qiime2-amplicon
하는 일
이 도구는 16S 앰플리콘 리드라는 유전 서열을 처리해 분류 단위(ASV)와 그 분류를 식별하며, 모든 단계를 자세히 기록합니다. 입력 데이터가 올바르고 QIIME 2 소프트웨어와 호환되는지 확인합니다.
사용하는 경우
- ✓환경이나 생물 시료에서 얻은 DNA 서열을 분석할 때.
- ✓시료에 있는 여러 세균 종을 식별해야 할 때.
- ✓원시 시퀀싱 데이터가 이미 있고 분석을 위해 정리하고 싶을 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/qiime2-amplicon/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“16S 앰플리콘 서열을 분석하려고 합니다. 파일은 ‘sample1_R1.fastq.gz’와 ‘sample1_R2.fastq.gz’이고, 메타데이터 파일은 ‘metadata.tsv’입니다. 사용한 프라이머는 GTGYCAGCMGCCGCGGTAA(정방향)와 GGACTACNVGGGTWTCTAAT(역방향)입니다. 서열을 정방향 220, 역방향 200 염기로 자르고, 예상 최대 길이는 300 염기입니다. 제가 가진 분류기는 ‘classifier.qza’입니다. 이에 맞게 처리해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 먼저 데이터 파일(매니페스트와 메타데이터)과 프라이머 정보가 올바른지 확인합니다. 그다음 QIIME 2 소프트웨어를 사용해 서열을 처리하고, 프라이머를 제거하며, 분류 단위를 식별하고 분류를 부여하며, 모든 과정의 기록을 남깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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/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,
…
자주 묻는 질문
ASV란 무엇인가요?
ASV(앰플리콘 서열 변이)는 서로 다른 종이나 종 내 변이를 나타내는 고유한 유전 서열입니다. 유전적 ‘지문’과 같습니다.
‘출처(provenance)’란 무엇인가요?
데이터 처리에서 거친 모든 단계와 사용한 도구의 자세한 기록입니다. 분석이 재현 가능하고 신뢰할 수 있도록 돕습니다.
어떤 분류기 파일이든 쓸 수 있나요?
아닙니다. 분류기는 사용 중인 QIIME 2 버전과 호환되고 16S 데이터에 적합해야 합니다. scikit-learn 버전이 맞는 신뢰할 수 있는 분류기를 쓰는 것이 중요합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 51k
- 순위
- #3550
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.