Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate and interpret quality reports from FASTQ files using FastQC and MultiQC. Assess per-base quality, adapter content, GC bias, duplication levels, and overrepresented sequences. Use when performing initial QC on raw sequencing data or validating preprocessing results.
.claude/skills/bio-read-qc-quality-reports/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | — | — |
| case-18 | ✗→✓ | ▲ Improved | — | — |
| case-19 | ✗→✓ | ▲ Improved | — | — |
| case-07 | ✗→✓ | ▲ Improved | — | — |
| case-09 | ✗→✓ | ▲ Improved | — | — |
Reference examples tested with: pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
pip show <package> then help(module.function) to check signatures<tool> --version then <tool> --help to confirm flagsIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Generate quality reports for FASTQ files using FastQC and aggregate multiple reports with MultiQC.
"Run quality control on FASTQ files" → Generate per-base quality, adapter content, and duplication plots, then aggregate across samples.
fastqc *.fastq.gz then multiqc .bash# Single file fastqc sample.fastq.gz # Multiple files fastqc *.fastq.gz # Specify output directory fastqc -o qc_reports/ sample_R1.fastq.gz sample_R2.fastq.gz # Set threads fastqc -t 4 *.fastq.gz
FastQC produces two files per input:
sample_fastqc.html - Interactive HTML reportsample_fastqc.zip - Data files and images| Module | What It Shows | Warning Signs | |--------|---------------|---------------| | Per base sequence quality | Quality scores across read | Drop below Q20 at 3' end | | Per sequence quality | Quality score distribution | Bimodal distribution | | Per base sequence content | Nucleotide composition | Imbalance at start (normal) | | Per sequence GC content | GC distribution | Secondary peak (contamination) | | Per base N content | Unknown bases | High N content | | Sequence length distribution | Read lengths | Unexpected variation | | Sequence duplication | Duplicate reads | High duplication (PCR) | | Overrepresented sequences | Common sequences | Adapter contamination | | Adapter content | Adapter sequences | Visible adapter curves |
bash# Unzip to access raw data unzip sample_fastqc.zip # View summary cat sample_fastqc/summary.txt # Get per-base quality cat sample_fastqc/fastqc_data.txt | grep -A 50 ">>Per base sequence quality"
bash# Aggregate all FastQC reports in current directory multiqc . # Specify input and output multiqc qc_reports/ -o multiqc_output/ # Custom report name multiqc . -n my_project_qc # Force overwrite multiqc . -f
bash# Flat directory (no sample subdirs) multiqc --flat . # Export data as TSV multiqc . --export # Only specific modules multiqc . -m fastqc # Exclude patterns multiqc . --ignore '*_trimmed*' # Include patterns multiqc . --ignore-samples '*negative*'
multiqc_report.html - Interactive HTML reportmultiqc_data/ - Directory with data tablesmultiqc_fastqc.txt - FastQC metricsmultiqc_general_stats.txt - Summary statisticsmultiqc_sources.txt - Source files usedpythonimport pandas as pd general_stats = pd.read_csv('multiqc_data/multiqc_general_stats.txt', sep='\t') print(general_stats.columns) fastqc_data = pd.read_csv('multiqc_data/multiqc_fastqc.txt', sep='\t')
bash# All FASTQ files in parallel fastqc -t 8 -o qc_reports/ raw_data/*.fastq.gz # Then aggregate multiqc qc_reports/ -o multiqc_output/
bash# Create separate directories mkdir -p qc_reports/raw qc_reports/trimmed # QC raw reads fastqc -o qc_reports/raw/ raw_data/*.fastq.gz # After trimming (using fastp, cutadapt, etc.) fastqc -o qc_reports/trimmed/ trimmed_data/*.fastq.gz # Compare with MultiQC multiqc qc_reports/ -o qc_comparison/
| Phred Score | Error Rate | Interpretation | |-------------|------------|----------------| | Q40 | 0.0001 | Excellent | | Q30 | 0.001 | Good (Illumina target) | | Q20 | 0.01 | Acceptable | | Q10 | 0.1 | Poor |
| Issue | Likely Cause | Action | |-------|--------------|--------| | Low quality at 3' end | Normal degradation | Trim 3' end | | Adapter contamination | Short inserts | Trim adapters | | GC bias | Library prep | Consider correction | | High duplication | Low complexity, PCR | Mark/remove duplicates | | Overrepresented seqs | Adapters, primers | Check sequences |
Create ~/.fastqc/Configuration/adapter_list.txt:
Custom_Adapter_Name ACGTACGTACGTCreate ~/.fastqc/Configuration/limits.txt to customize thresholds:
# Warn if mean quality below 25
quality_sequence warn 25
quality_sequence error 20| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +23 percentage points is the difference between those two pass rates over the 21 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.