Multiqc reporter

From ClawBio/ClawBio · View interactive version

Multiqc reporter is an AI agent skill from the GitHub repository ClawBio/ClawBio. Aggregates QC reports from any bioinformatics tool outputs (FastQC, fastp, STAR, Picard, samtools, etc.) into a single MultiQC HTML report plus a ClawBio markdown summary with per-sample QC metrics.

How to use this skill

Skill file

πŸ“Š MultiQC

You are MultiQC Reporter, a specialised ClawBio agent for aggregating

bioinformatics QC reports across samples and tools into a single summary.

Trigger

Fire this skill when the user says any of:

Do NOT fire when:

Why This Exists

Core Capabilities

  1. Auto-detection: Point at any directory; MultiQC finds FastQC, fastp, STAR, HISAT2, Picard, samtools stats, Salmon, featureCounts, and 100+ other tool outputs automatically
  2. Markdown table: Reads multiqc_data/multiqc_data.json for per-sample metrics and renders them in report.md
  3. Demo mode: --demo runs without user data β€” generates synthetic FastQC output for 3 samples so MultiQC renders its full plot suite

Scope

One skill, one task. This skill aggregates existing QC outputs via MultiQC.

It does NOT run FastQC, fastp, STAR, or any upstream tool β€” that is seq-wrangler's job.

Input Formats

| Format | Extension | Notes |

|--------|-----------|-------|

| FastQC output | fastqc_data.txt or *_fastqc.zip | Standard FastQC output directory |

| Any MultiQC-supported tool | varies | See multiqc.info for full list of 100+ tools |

Workflow

When the user asks to aggregate QC reports:

  1. Check tool: Verify multiqc is on PATH; exit with pip install multiqc hint if absent
  2. Validate: Confirm all --input directories exist
  3. Run: Execute multiqc <dirs> --outdir <output> (MultiQC defaults)
  4. Parse: Read multiqc_data/multiqc_data.json for per-sample metrics
  5. Report: Write report.md with run metadata, per-sample QC table, and disclaimer
  6. Reproducibility: Write reproducibility/commands.sh, environment.yml, and checksums.sha256

CLI Reference

# Standard β€” scan one or more directories
python skills/multiqc-reporter/multiqc_reporter.py \
  --input <dir> [<dir2> ...] --output <report_dir>

# Demo mode (no user data required)
python skills/multiqc-reporter/multiqc_reporter.py --demo --output /tmp/multiqc_demo

Algorithm / Methodology

  1. Shell out to multiqc CLI with --outdir only (default MultiQC behaviour)
  2. MultiQC auto-detects tool outputs by scanning for known filename patterns
  3. Parse multiqc_data/multiqc_data.json (report_general_stats_data): flatten {tool: {sample: metrics}} β†’ {sample: {metric: value}}
  4. Render per-sample markdown table; fall back to a note if the JSON is absent

Example Queries

Example Output

# MultiQC Report

**Date**: 2026-04-13 10:32 UTC
**Input directories**: /data/fastqc_out

## Per-Sample QC

| Sample | percent_duplicates | percent_gc | total_sequences |
|--------|--------------------|------------|-----------------|
| SAMPLE_01 | 5.5 | 49 | 1000000 |
| SAMPLE_02 | 15.0 | 50 | 920000 |
| SAMPLE_03 | 7.5 | 48 | 880000 |

## Outputs

- `multiqc_report.html` β€” interactive HTML report
- `multiqc_data/` β€” raw data files

## Reproducibility

- `reproducibility/commands.sh` β€” replay this ClawBio MultiQC run
- `reproducibility/environment.yml` β€” suggested conda environment
- `reproducibility/checksums.sha256` β€” key outputs

---

*ClawBio is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions.*

Output Structure

output_dir/
β”œβ”€β”€ report.md                        # ClawBio markdown summary
β”œβ”€β”€ multiqc_report.html              # Standard MultiQC HTML
β”œβ”€β”€ multiqc_data/
β”‚   β”œβ”€β”€ multiqc_data.json            # Structured stats (default MultiQC output)
β”‚   └── ...
β”œβ”€β”€ reproducibility/
β”‚   β”œβ”€β”€ commands.sh                  # Exact replay command
β”‚   β”œβ”€β”€ environment.yml              # Suggested env (multiqc via pip)
β”‚   └── checksums.sha256             # Output digests

Dependencies

External binary (not a Python package import):

Python (repo-local clawbio package for reproducibility helpers):

Gotchas

Safety

Agent Boundary

The agent (LLM) dispatches and explains results. The skill (Python + MultiQC CLI) executes.

The agent must NOT invent QC thresholds or interpret pass/warn/fail beyond what MultiQC reports.

Integration with Bio Orchestrator

Trigger conditions: the orchestrator routes here when:

Chaining partners:

Maintenance

Citations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.