jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ Multiqc Reporter

multiqc-reporter

様々なバイオインフォマティクスツールが出

⏱ テスト計画作成 2時間 → 20分

📺 まず動画で見る(YouTube)

▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

様々なバイオインフォマティクスツールが出

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o multiqc-reporter.zip https://jpskill.com/download/4097.zip && unzip -o multiqc-reporter.zip && rm multiqc-reporter.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4097.zip -OutFile "$d\multiqc-reporter.zip"; Expand-Archive "$d\multiqc-reporter.zip" -DestinationPath $d -Force; ri "$d\multiqc-reporter.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して multiqc-reporter.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → multiqc-reporter フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-18
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Multiqc Reporter を使って、最小構成のサンプルコードを示して
  • Multiqc Reporter の主な使い方と注意点を教えて
  • Multiqc Reporter を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

📊 MultiQC

あなたはMultiQC Reporterです。これは、サンプルやツールを横断するバイオインフォマティクスQCレポートを単一のサマリーに集約するための、ClawBioの専門エージェントです。

トリガー

ユーザーが以下のいずれかを言った場合に、このスキルを起動してください。

  • 「これらの出力でMultiQCを実行して」
  • 「QCレポートを集約して」
  • 「サンプル間でFastQCの結果を結合して」
  • 「複数サンプルのQCレポートを生成して」
  • 「MultiQCを実行して」
  • 「サンプル間のQCサマリー」
  • 「MultiQCレポート」
  • 「すべてのサンプルのQCを見せて」

以下の場合には起動しないでください。

  • ユーザーがFastQC、fastp、またはSTARを自分で実行したい場合 — seq-wranglerにルーティングしてください。
  • ユーザーが差次的発現QCを求めている場合 — rnaseq-deにルーティングしてください。
  • ユーザーがシングルセルQCを求めている場合 — scrna-orchestratorにルーティングしてください。

これが存在する理由

  • これがない場合: ユーザーは、多数のファイルにわたるツールごと、サンプルごとのQC出力を手動で検査する必要があり、サンプル間のパターンを見逃してしまいます。
  • これがある場合: 1つのコマンドで、すべてのツール出力を単一のインタラクティブなHTMLレポートと、サンプルごとのメトリクスをまとめたreport.mdテーブルに集約します。
  • ClawBioである理由: MultiQCのJSONデータから抽出された構造化されたreport.mdを追加し、他のスキルと連携可能です。

コア機能

  1. 自動検出: 任意のディレクトリを指定するだけで、MultiQCはFastQC、fastp、STAR、HISAT2、Picard、samtools stats、Salmon、featureCounts、および100以上の他のツール出力を自動的に見つけます。
  2. Markdownテーブル: multiqc_data/multiqc_data.jsonからサンプルごとのメトリクスを読み取り、report.mdにレンダリングします。
  3. デモモード: --demoはユーザーデータなしで実行されます — 3つのサンプルに対して合成FastQC出力を生成し、MultiQCがその全プロットスイートをレンダリングします。

スコープ

1つのスキル、1つのタスク。 このスキルは、MultiQCを介して既存のQC出力を集約します。 FastQC、fastp、STAR、またはその他の上流ツールを実行しません — それはseq-wranglerの仕事です。

入力形式

形式 拡張子 備考
FastQC出力 fastqc_data.txt または *_fastqc.zip 標準のFastQC出力ディレクトリ
MultiQCがサポートする任意のツール 様々 100以上のツールの完全なリストはmultiqc.infoを参照してください

ワークフロー

ユーザーがQCレポートの集約を要求した場合:

  1. ツールチェック: multiqcがPATH上にあることを確認します。存在しない場合はpip install multiqcのヒントを表示して終了します。
  2. 検証: すべての--inputディレクトリが存在することを確認します。
  3. 実行: multiqc <dirs> --outdir <output>を実行します (MultiQCのデフォルト)。
  4. 解析: multiqc_data/multiqc_data.jsonからサンプルごとのメトリクスを読み取ります。
  5. レポート: 実行メタデータ、サンプルごとのQCテーブル、および免責事項を含むreport.mdを書き込みます。
  6. 再現性: reproducibility/commands.shenvironment.yml、およびchecksums.sha256を書き込みます。

CLIリファレンス

# 標準 — 1つ以上のディレクトリをスキャン
python skills/multiqc-reporter/multiqc_reporter.py \
  --input <dir> [<dir2> ...] --output <report_dir>

# デモモード (ユーザーデータは不要)
python skills/multiqc-reporter/multiqc_reporter.py --demo --output /tmp/multiqc_demo

アルゴリズム / 方法論

  1. --outdirのみを指定してmultiqc CLIをシェルアウトします (MultiQCのデフォルト動作)。
  2. MultiQCは、既知のファイル名パターンをスキャンしてツール出力を自動検出します。
  3. multiqc_data/multiqc_data.json (report_general_stats_data) を解析します: {tool: {sample: metrics}}{sample: {metric: value}} にフラット化します。
  4. サンプルごとのMarkdownテーブルをレンダリングします。JSONが存在しない場合は注記にフォールバックします。

クエリ例

  • 「FastQC出力ディレクトリでMultiQCを実行して」
  • 「/data/qc_outputs/にあるすべてのサンプルのQCを集約して」
  • 「複数サンプルのQCレポートをください」
  • 「MultiQCスキルのデモを見せて」

出力例

# 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は研究および教育ツールです。医療機器ではなく、臨床診断を提供するものではありません。医療上の決定を下す前に、医療専門家にご相談ください。*

出力構造

output_dir/
├── report.md                        # ClawBio Markdownサマリー
├── multiqc_report.html              # 標準MultiQC HTML
├── multiqc_data/
│   ├── multiqc_data.json            # 構造化された統計 (MultiQCのデフォルト出力)
│   └── ...
├── reproducibility/
│   ├── commands.sh                  # 正確な再現コマンド
│   ├── environment.yml              # 推奨環境 (pip経由のmultiqc)
│   └── checksums.sha256             # 出力ダイジェスト

依存関係

外部バイナリ (Pythonパッケージのインポートではありません):

  • multiqc >= 1.20; pip install multiqcでインストールします。

Python (再現性ヘルパーのためのリポジトリローカルなclawbioパッケージ):

  • subprocess, json, shutil, argparse, tempfile, math
  • clawbio.common.reproducibilitycommands.sh, environment.yml, checksums.sha256

落とし穴

  • ツール固有のファイルを直接解析したくなるでしょう。 しないでください。MultiQCの自動検出がこれを処理します。その仕事に任せてください。FastQCのテキストを自分で解析すると、他の99のサポートされているツールを見逃します。
  • report_general_stats_dataのメトリックキーはすでに短いです (例: percent_duplicates, percent_gc) — さらなる処理は不要です。テーブルが空に見える場合は、multiqc_data/multiqc_data.jsonが存在し、report_general_stats_dataが空でないことを確認してください。
  • --demotempfile.TemporaryDirectory内にファイルを作成し、run_multiqcが返ると削除されます。 MultiQCはその時点で既に出力を--outputに書き込んでいるため、何も失われません。withブロックの境界を移動しないでください。
  • MultiQCは認識されたファイルが見つからなくても0で終了します — 単に空のレポートを生成するだけです。スキルはこれをエラーとして扱いません。ユーザーは
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

📊 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:

  • "run multiqc on these outputs"
  • "aggregate my QC reports"
  • "combine FastQC results across samples"
  • "generate a multi-sample QC report"
  • "run multiqc"
  • "QC summary across samples"
  • "multiqc report"
  • "show me QC for all my samples"

Do NOT fire when:

  • The user wants to run FastQC, fastp, or STAR themselves — route to seq-wrangler
  • The user wants differential expression QC — route to rnaseq-de
  • The user wants single-cell QC — route to scrna-orchestrator

Why This Exists

  • Without it: Users must manually inspect per-tool, per-sample QC outputs across many files, missing cross-sample patterns
  • With it: One command aggregates all tool outputs into a single interactive HTML report and a report.md table of per-sample metrics
  • Why ClawBio: Adds a structured report.md extracted from MultiQC's JSON data, chainable with other skills

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

  • "Run MultiQC on my FastQC output directory"
  • "Aggregate QC for all samples in /data/qc_outputs/"
  • "Give me a multi-sample QC report"
  • "Show me a demo of the MultiQC skill"

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):

  • multiqc >= 1.20; install with pip install multiqc

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

  • subprocess, json, shutil, argparse, tempfile, math
  • clawbio.common.reproducibilitycommands.sh, environment.yml, checksums.sha256

Gotchas

  • You will want to parse tool-specific files directly. Do not. MultiQC's auto-detection handles this; let it do its job. Parsing FastQC text yourself will miss 99 other supported tools.
  • report_general_stats_data metric keys are already short (e.g. percent_duplicates, percent_gc) — no further processing needed. If the table looks empty, check that multiqc_data/multiqc_data.json exists and that report_general_stats_data is non-empty.
  • --demo creates files in a tempfile.TemporaryDirectory that is deleted after run_multiqc returns. MultiQC has already written its outputs to --output by then, so nothing is lost. Don't move the with block boundary.
  • MultiQC exits 0 even if it found no recognised files — it just produces an empty report. The skill does not treat this as an error; the user will see an empty table in report.md and an HTML report noting no modules were found.
  • Static PNG/SVG/PDF plots are not produced by this skill — it never passes MultiQC --export. Interactive plots remain in multiqc_report.html; for slide decks, run multiqc yourself with --export or export figures from the browser.

Safety

  • Local-first: All processing is local; no data is uploaded
  • Disclaimer: Every report.md includes the ClawBio medical disclaimer
  • No hallucinated metrics: All values in the table come directly from multiqc_data/multiqc_data.json

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:

  • User mentions "multiqc", "aggregate QC", "multi-sample QC report"
  • Output directory from seq-wrangler, rnaseq-de, or scrna-orchestrator is provided alongside a request to summarise QC

Chaining partners:

  • seq-wrangler: produces FastQC/fastp/BAM stats directories → feed into multiqc
  • rnaseq-de: STAR/HISAT2 alignment logs → feed into multiqc for alignment QC
  • scrna-orchestrator: STARsolo per-sample QC dirs → feed into multiqc
  • repro-enforcer: folds the reproducibility/ trio into pipeline-wide bundles

Maintenance

  • Review cadence: Re-evaluate when MultiQC releases a major version (check multiqc --version)
  • Staleness signals: If per-sample tables are empty after a MultiQC upgrade, check whether report_general_stats_data still exists in multiqc_data.json
  • Deprecation: Archive to skills/_deprecated/ if MultiQC adds a native ClawBio integration

Citations