본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트51k · #3550

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/qiime2-amplicon/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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/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,

…

자주 묻는 질문

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.

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

인기도

GitHub 스타
51k
순위
#3550
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬