tooluniverse-fastq-qc
FASTQ quality control and adapter/quality-trimming decisions with local NGS tools — run FastQC on raw reads, summarize a project with MultiQC, interpret…
от mims-harvard★ 1 813 звёзд на GitHub
Установить tooluniverse-fastq-qc в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
FASTQ Quality Control & Trimming Decisions
Run quality control on raw sequencing reads, interpret the report, and make an evidence-based decision about whether to trim — using real local command-line tools (FastQC, MultiQC, fastp, Cutadapt, seqkit).
Honesty contract (read first)
This skill drives real binaries. It must never fabricate QC numbers.
- Preflight before anything. Check whether the required tools are on PATH. If a required tool is missing, emit the install plan and STOP. Do not estimate, guess, or describe hypothetical QC results.
- Never auto-trim. Trimming is a decision. QC-only is the default.
Only trim after inspecting adapter content / per-base quality, and only
when the user has confirmed
--mode trim. - Never overwrite raw FASTQs. All outputs go to a separate
--workdir. The input directory is read-only. Trimmed reads are written as NEW files. - If you cannot run, say so. "FastQC is not installed; here is the install plan" is the correct answer — not a made-up PASS/FAIL table.
When to use vs. not
Use this skill when the user wants to:
- Run FastQC / fastp QC on one or more FASTQ (
.fastq,.fq,.gz) files - Interpret a FastQC report (per-base quality, adapter content, etc.)
- Decide whether adapter or quality trimming is needed before downstream work
- Summarize many samples into one MultiQC report
- Count reads, get length/GC stats, or subsample with seqkit
- Trim adapters/low-quality bases with fastp or Cutadapt (explicitly)
Do NOT use this skill for (route elsewhere):
- Differential expression / DEG / fold-change analysis ->
tooluniverse-rnaseq-deseq2 - Read alignment, coverage depth, samtools, BWA ->
tooluniverse-sequence-analysis - Variant calling, VCF, VAF, mutation analysis ->
tooluniverse-variant-analysis - Single-cell / scRNA QC (per-cell metrics, scanpy) ->
tooluniverse-single-cell
Essential inputs to confirm
Before running, confirm with the user (ask if unstated):
- FASTQ paths — exact path(s). One file = single-end; an R1+R2 pair =
paired-end (e.g.
*_R1.fastq.gz/*_R2.fastq.gz). - QC-only or trim? Default is QC-only. Only trim on explicit request.
- Known adapters / primers? Standard Illumina adapters are auto-detected by fastp; amplicon/primer sequences usually need explicit Cutadapt removal.
- Organism — only needed if a contamination / over-representation screen is requested (needs a reference; see Limitations).
- Output directory — a
--workdirSEPARATE from the input folder. - Read provenance — are these raw, already-trimmed, or UMI-tagged reads? Already-trimmed reads should NOT be trimmed again; UMIs must be handled before trimming or you corrupt the UMI.
Preflight (do this first, every time)
The bundled script preflights for you, but the decision logic is:
import shutil
for tool in ("fastqc", "fastp", "seqkit"):
print(tool, shutil.which(tool) or "MISSING")
command -v fastqc / shutil.which("fastqc") returning nothing means the
tool is absent. If a required tool (FastQC for QC; FastQC+fastp for trim)
is missing, emit:
mamba install -c bioconda -c conda-forge fastqc fastp seqkit multiqc
# or
conda install -c bioconda -c conda-forge fastqc fastp seqkit multiqc
and stop. Do not proceed to fabricate output.
Tool roles
| Tool | Role | Install (bioconda) |
|---|---|---|
| FastQC | Per-file raw read QC; produces the module PASS/WARN/FAIL report | fastqc |
| MultiQC | Aggregates many FastQC (and fastp) reports into one summary | multiqc |
| fastp | All-in-one QC + adapter + quality trimming (fast, auto-detect) | fastp |
| Cutadapt | Explicit, precise adapter/primer removal (amplicons, custom) | cutadapt |
| seqkit | Read counts, length/GC stats, subsampling | seqkit |
Rule of thumb: FastQC to diagnose, fastp to fix general adapter/quality, Cutadapt to fix a known primer/adapter precisely, seqkit to count/stat.
Bundled orchestration script
scripts/run_fastq_qc.py does the preflight + run-if-available + plan-if-missing
flow, with workspace isolation built in.
# QC only (default) — never modifies reads
python scripts/run_fastq_qc.py \
--fastq reads/sample_R1.fastq.gz reads/sample_R2.fastq.gz \
--workdir /tmp/fastq_qc_run
# QC + trim (explicit) — fastp writes NEW trimmed files into --workdir
python scripts/run_fastq_qc.py \
--fastq reads/sample_R1.fastq.gz reads/sample_R2.fastq.gz \
--workdir /tmp/fastq_qc_run \
--mode trim
Behavior:
- Preflights FastQC (+ fastp in trim mode) and seqkit. If a required tool is missing it prints the install plan and exits 0 — no fabricated QC.
- Runs FastQC (always) +
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/fastqc_interpretation.md
- references/tools_and_install.md
- references/trimming_decisions.md
- scripts/run_fastq_qc.py
FAQ
Что делает скилл tooluniverse-fastq-qc?
FASTQ quality control and adapter/quality-trimming decisions with local NGS tools — run FastQC on raw reads, summarize a project with MultiQC, interpret per-base sequence quality, per-base N content, adapter content, overrepresented sequences, sequence duplication and GC content, and decide whether (and how) to trim with fastp / Cutadapt before downstream analysis. seqkit for read counts/stats/subsampling. Use when someone asks "run QC on my FASTQs", "are my reads good quality?", "do I need to trim adapters?", "interpret this FastQC report", "what does this WARN/FAIL mean", "why are overrepresented sequences flagged", "should I quality-trim before alignment", "make a MultiQC summary", or "clean up these reads with fastp". NOT for differential expression / DEG analysis (use tooluniverse-rnaseq-deseq2), NOT for read alignment, coverage, or variant calling (use tooluniverse-variant-analysis / tooluniverse-sequence-analysis). Honest: shells out to real local binaries; if a tool is missing it emits an install plan and stops rather than inventing QC numbers, and it never auto-trims or overwrites raw FASTQs.
Как установить скилл tooluniverse-fastq-qc?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tooluniverse-fastq-qc запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…