Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Aggregates QC from 150+ bioinformatics tools into one interactive HTML report. Scans FastQC, samtools, STAR, HISAT2, Trim Galore, featureCounts, Kallisto, Salmon, Picard, GATK logs; merges per-sample stats with plots. For NGS pipeline-wide QC. Use FastQC directly for single-sample; MultiQC for multi-sample reporting.
.claude/skills/jaechang-hits-multiqc-qc-reports/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 163% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 123% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 68% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 81% | 0% |
MultiQC automatically searches directories for QC log files from 150+ bioinformatics tools and aggregates statistics across all samples into a single interactive HTML report. It parses outputs from FastQC, samtools flagstat, STAR, HISAT2, Trim Galore, Salmon, Kallisto, featureCounts, Picard, GATK, and many more — eliminating the need to manually review per-sample QC files. Reports include interactive bar plots, scatter plots, heatmaps, and tables with configurable warnings and pass/fail thresholds.
multiqc.zip, samtools .flagstat, STAR Log.final.out, etc.) — MultiQC finds them automatically> Check before installing: The tool may already be available in the current environment (e.g., inside a pixi / conda env). Run command -v multiqc first and skip the install commands below if it returns a path. When running inside a pixi project, invoke the tool via pixi run multiqc rather than bare multiqc.
bashpip install multiqc # Verify multiqc --version # MultiQC v1.25.0 # With conda (recommended for bioinformatics) conda install -c bioconda multiqc
MultiQC aggregates existing output — first run your QC tools.
bash# FastQC on all FASTQ files mkdir -p qc/fastqc fastqc data/*.fastq.gz -o qc/fastqc/ -t 8 # samtools flagstat on all BAM files for bam in results/*.bam; do samtools flagstat $bam > qc/$(basename $bam .bam).flagstat done echo "QC files generated: $(ls qc/ | wc -l)"
MultiQC recursively scans for recognized QC files.
bash# Basic run: scan current directory recursively multiqc . # Specify output directory and report name multiqc . -o reports/ -n project_qc_report # Scan specific subdirectories only multiqc qc/fastqc/ results/star/ logs/trimming/ -o reports/ # Output: reports/project_qc_report.html echo "Report: reports/project_qc_report.html"
Use multiqc_config.yaml to set custom thresholds, sample naming, and module order.
yaml# multiqc_config.yaml — place in working directory title: "RNA-seq QC Report — Project X" subtitle: "Analysis date: 2026-02" intro_text: "Quality control summary for all 48 samples." # Sample name cleaning: remove path prefixes and suffixes fn_clean_exts: - ".fastq.gz" - "_R1" - ".sorted" # Thresholds for pass/warn/fail coloring general_stats_addcols: FastQC: pct_duplication: max: 40 warn: 30 # Module run order module_order: - fastqc - trimgalore - star - featurecounts - samtools
bash# Run with config file multiqc . --config multiqc_config.yaml -o reports/
Control which tools and samples are included.
bash# Run only specific modules multiqc . --module fastqc --module samtools # Exclude specific modules multiqc . --exclude fastqc # Include only files matching a pattern multiqc . --filename "*.flagstat" --filename "*_fastqc.zip" # Ignore specific directories or files multiqc . --ignore "tmp/" --ignore "*.bam" # Add sample name regex substitution multiqc . --replace-names "sample_" ""
Extract machine-readable statistics from the MultiQC report.
bash# Export data tables (CSV, JSON, YAML, TSV) multiqc . -o reports/ --data-format json # Generates: reports/multiqc_data/multiqc_data.json # Export flat CSV tables per tool multiqc . -o reports/ --export ls reports/multiqc_data/ # multiqc_fastqc.txt, multiqc_samtools_stats.txt, ... # Extract general stats as pandas DataFrame python3 - << 'EOF' import json import pandas as pd with open("reports/multiqc_data/multiqc_general_stats.json") as f: data = json.load(f) df = pd.DataFrame(data).T print(df.head()) print(f"Shape: {df.shape}") EOF
Integrate MultiQC as the final step of any QC pipeline.
bash#!/bin/bash # Complete RNA-seq QC pipeline → MultiQC summary SAMPLES=(ctrl_rep1 ctrl_rep2 treat_rep1 treat_rep2) OUTDIR="pipeline_output" mkdir -p $OUTDIR/{fastqc,star,featurecounts,flagstat} for sample in "${SAMPLES[@]}"; do # FastQC fastqc data/${sample}.fastq.gz -o $OUTDIR/fastqc/ -t 4 # STAR alignment STAR --runThreadN 8 --genomeDir refs/star_index \ --readFilesIn data/${sample}.fastq.gz \ --outSAMtype BAM SortedByCoordinate \ --outFileNamePrefix $OUTDIR/star/${sample}/ # samtools flagstat samtools flagstat $OUTDIR/star/${sample}/Aligned.sortedByCoord.out.bam \ > $OUTDIR/flagstat/${sample}.flagstat done # Final MultiQC report multiqc $OUTDIR/ -o $OUTDIR/qc_report/ -n "full_pipeline_qc" echo "Report ready: $OUTDIR/qc_report/full_pipeline_qc.html"
| Parameter | Default | Range/Options | Effect | |-----------|---------|---------------|--------| | -o, --outdir | . | directory path | Output directory for report and data | | -n, --filename | multiqc_report | any string | Report filename (without extension) | | -m, --module | all | tool name | Run only specified module(s) | | --ignore | — | glob pattern | Ignore matching files or directories | | --export | False | flag | Export flat tab-delimited data files | | --data-format | tsv | tsv, json, yaml | Format for exported data files | | --config | auto-detected | YAML file path | Custom config file with thresholds and naming | | --replace-names | — | regex, replacement | Clean sample names in report | | --fn_clean_exts | (built-in) | list in config | File extensions to strip from sample names | | --profile-runtime | False | flag | Show per-module runtime profiling |
python# In Snakefile: collect all QC outputs, then run MultiQC rule multiqc: input: expand("qc/fastqc/{sample}_fastqc.zip", sample=SAMPLES), expand("qc/flagstat/{sample}.flagstat", sample=SAMPLES) output: html="reports/multiqc_report.html", data=directory("reports/multiqc_data") shell: "multiqc qc/ -o reports/ -n multiqc_report"
pythonimport json import pandas as pd # Load general stats from JSON export with open("reports/multiqc_data/multiqc_general_stats.json") as f: stats = json.load(f) df = pd.DataFrame(stats).T print(f"Samples: {len(df)}") print(f"Metrics: {list(df.columns[:5])}") # Flag samples with low mapping rate if "STAR_mqc-generalstats-star-uniquely_mapped_percent" in df.columns: low_mapping = df[df["STAR_mqc-generalstats-star-uniquely_mapped_percent"] < 70] print(f"Samples with <70% mapping: {list(low_mapping.index)}")
bash# Run FastQC on raw and trimmed reads, then combine in one report mkdir -p qc/{raw,trimmed} fastqc data/*.fastq.gz -o qc/raw/ -t 8 trim_galore data/*.fastq.gz --paired -o trimmed/ fastqc trimmed/*_trimmed.fastq.gz -o qc/trimmed/ -t 8 multiqc qc/raw/ qc/trimmed/ \ -o reports/ -n raw_vs_trimmed \ --dirs --dirs-depth 1 # use directory names in sample labels
| Output | Format | Description | |--------|--------|-------------| | multiqc_report.html | HTML | Interactive report with all plots and tables | | multiqc_data/multiqc_general_stats.txt | TSV | Per-sample summary statistics (all tools) | | multiqc_data/multiqc_*.txt | TSV | Per-tool detailed statistics tables | | multiqc_data/multiqc_data.json | JSON | Full data (if --data-format json) | | multiqc_data/multiqc_sources.txt | TSV | Mapping of source files to samples |
| Problem | Cause | Solution | |---------|-------|----------| | Empty report (no modules found) | QC files not in scanned directories | Specify directories explicitly: multiqc qc/ logs/ results/ | | Wrong sample names in report | File extensions or paths not cleaned | Add fn_clean_exts to config or use --replace-names | | Module missing from report | Log file format changed in tool version | Update MultiQC: pip install --upgrade multiqc; check GitHub issues | | Duplicate sample names | Multiple files map to same sample name | Use --sample-names or fix fn_clean_exts in config | | Report very slow to open | Too many samples (>500) in one report | Split by project or condition; use --flat for simpler rendering | | FastQC data not parsed | FastQC ZIP not in expected location | Run MultiQC from root of project; ensure *_fastqc.zip files exist | | ModuleNotFoundError | Missing optional module dependencies | pip install multiqc[all] for all extras |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 8,194 | 11,517 | +41% | 1 | 1 | 0% | 1,376 | 3,618 | +163% | 0 | 0 | — |
case-02 | pass→pass | 10,109 | 6,175 | -39% | 1 | 1 | 0% | 1,646 | 3,847 | +134% | 0 | 0 | — |
case-03 | pass→pass | 6,887 | 2,864 | -58% | 1 | 1 | 0% | 1,146 | 3,238 | +183% | 0 | 0 | — |
case-04 | fail→pass | 9,599 | 3,524 | -63% | 1 | 1 | 0% | 1,626 | 3,392 | +109% | 0 | 0 | — |
case-05 | fail→pass | 11,051 | 7,733 | -30% | 1 | 1 | 0% | 1,857 | 4,148 | +123% | 0 | 0 | — |
case-06 | fail→pass | 13,912 | 6,605 | -53% | 1 | 1 | 0% | 2,230 | 3,753 | +68% | 0 | 0 | — |
case-07 | pass→pass | 11,030 | 6,794 | -38% | 1 | 1 | 0% | 1,831 | 4,055 | +121% | 0 | 0 | — |
case-08 | pass→pass | 6,350 | 3,585 | -44% | 1 | 1 | 0% | 1,062 | 3,381 | +218% | 0 | 0 | — |
case-09 | pass→pass | 8,903 | 6,287 | -29% | 1 | 1 | 0% | 1,498 | 3,916 | +161% | 0 | 0 | — |
case-10 | fail→pass | 9,999 | 3,111 | -69% | 1 | 1 | 0% | 1,859 | 3,360 | +81% | 0 | 0 | — |
case-11 | pass→pass | 14,452 | 3,723 | -74% | 1 | 1 | 0% | 1,732 | 3,313 | +91% | 0 | 0 | — |
case-12 | pass→pass | 8,554 | 4,978 | -42% | 1 | 1 | 0% | 1,255 | 3,554 | +183% | 0 | 0 | — |
case-13 | fail→pass | 11,413 | 2,237 | -80% | 1 | 1 | 0% | 1,792 | 3,079 | +72% | 0 | 0 | — |
case-14 | fail→fail | 14,200 | 9,808 | -31% | 1 | 1 | 0% | 2,260 | 4,324 | +91% | 0 | 0 | — |
case-15 | pass→pass | 6,075 | 2,747 | -55% | 1 | 1 | 0% | 814 | 3,206 | +294% | 0 | 0 | — |
case-16 | pass→pass | 6,904 | 6,123 | -11% | 1 | 1 | 0% | 1,176 | 3,791 | +222% | 0 | 0 | — |
case-17 | fail→pass | 7,544 | 5,322 | -29% | 1 | 1 | 0% | 1,288 | 3,503 | +172% | 0 | 0 | — |
case-18 | fail→pass | 7,964 | 6,263 | -21% | 1 | 1 | 0% | 1,459 | 3,921 | +169% | 0 | 0 | — |
case-19 | pass→pass | 9,388 | 5,062 | -46% | 1 | 1 | 0% | 1,491 | 3,705 | +148% | 0 | 0 | — |
case-20 | fail→fail | 17,181 | 16,949 | -1% | 1 | 1 | 0% | 2,651 | 5,883 | +122% | 0 | 0 | — |
case-21 | fail→fail | 16,164 | 11,743 | -27% | 1 | 1 | 0% | 2,891 | 4,996 | +73% | 0 | 0 | — |
case-22 | pass→pass | 4,261 | 2,456 | -42% | 1 | 1 | 0% | 701 | 3,182 | +354% | 0 | 0 | — |
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. The headline lift of +36 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.