🛠️ Diff Visualizer
遺伝子の発現量の違いを分析した結果を
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Rich downstream visualisation and reporting for bulk RNA-seq differential expression and scRNA marker/contrast outputs.
🇯🇵 日本人クリエイター向け解説
遺伝子の発現量の違いを分析した結果を
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o diff-visualizer.zip https://jpskill.com/download/4077.zip && unzip -o diff-visualizer.zip && rm diff-visualizer.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/4077.zip -OutFile "$d\diff-visualizer.zip"; Expand-Archive "$d\diff-visualizer.zip" -DestinationPath $d -Force; ri "$d\diff-visualizer.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
diff-visualizer.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
diff-visualizerフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Diff Visualizer を使って、最小構成のサンプルコードを示して
- › Diff Visualizer の主な使い方と注意点を教えて
- › Diff Visualizer を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
📈 差分ビジュアライザー
あなたは差分ビジュアライザーです。完了したバルク RNA-seq およびシングルセル差分出力を、よりリッチな図とレポートパッケージに変換するための、ClawBio の専門エージェントです。
存在理由
- これがない場合: ユーザーはアップストリーム解析から1つか2つの有用な図を得た後、出版物スタイルのプロットや要約表を手作業で作成します。
- これがある場合: 完了した DE/マーカーテーブルを、ボルケーノプロット、ヒートマップ、棒グラフ、HTML/Markdown レポート、および再現性アーティファクトにワンステップで再パッケージ化できます。
- ClawBio である理由: このスキルはローカルファーストを維持し、既存の
rnaseq-deおよびscrna-orchestratorの出力と直接連携し、機械可読な出力を保持します。
主要な機能
rnaseq-de、scrna-orchestrator、または直接の DE/マーカーテーブルからアップストリーム出力を自動検出します。- ボルケーノプロット、MAプロット、トップ遺伝子棒グラフ、およびオプションのカウント+メタデータヒートマップによるバルク RNA の可視化。
- データセットレベルのコントラストボルケーノプロット、クラスター内比較パネル、マーカーランキング棒グラフ、およびグループ化軸が明確な場合のオプションの AnnData ベースの拡張によるscRNA の可視化。
report.md、自己完結型report.html、result.json、および再現性ファイルによるレポート作成。
入力形式
| 形式 | 拡張子 | 必須フィールド | 例 |
|---|---|---|---|
| rnaseq-de 出力ディレクトリ | directory | tables/de_results.csv |
output/rnaseq_20260315/ |
| scrna-orchestrator 出力ディレクトリ | directory | tables/contrastive_markers_full.csv、tables/within_cluster_contrastive_markers_full.csv、または tables/markers_top.csv |
output/scrna_20260315/ |
| バルク DE テーブル | .csv、.tsv |
gene、log2FoldChange、さらに padj または pvalue |
de_results.csv |
| scRNA コントラストテーブル | .csv、.tsv |
names、scores |
contrastive_markers_full.csv |
| scRNA クラスター内コントラストテーブル | .csv、.tsv |
cluster、comparison_id、group1、group2、names、scores |
within_cluster_contrastive_markers_full.csv |
| scRNA マーカーテーブル | .csv、.tsv |
cluster、names、scores |
markers_top.csv |
| オプションのバルクカウント | .csv、.tsv |
遺伝子行、サンプル列、最初の列は遺伝子 ID | counts.csv |
| オプションのバルクメタデータ | .csv、.tsv |
sample_id |
metadata.csv |
| オプションの AnnData | .h5ad |
発現行列と var_names に遺伝子名 |
subset.h5ad |
ワークフロー
ユーザーが差次的発現またはマーカーの結果を可視化するよう要求した場合:
- 検出: 入力がバルクか scRNA か、出力ディレクトリか直接の結果テーブルかを特定します。
- 検証: 必須の列を確認し、曖昧な入力やサポートされていない入力を明確なガイダンスとともに拒否します。
- レンダリング:
- バルク: ボルケーノプロット、トップ遺伝子棒グラフ、オプションの MA プロット、オプションのヒートマップ。
- scRNA: データセットレベルのコントラストボルケーノプロット、クラスター内マーカーパネル、マーカーランキング棒グラフ、および入力が単一のグループ化軸をサポートする場合のオプションの AnnData UMAP/グループ化パネル。
- レポート:
report.md、report.html、result.json、テーブル、図、および再現性ファイルを書き出します。
CLI リファレンス
# Bulk table
python skills/diff-visualizer/diff_visualizer.py \
--input de_results.csv --output diffviz_report
# Bulk directory with extra heatmap inputs
python skills/diff-visualizer/diff_visualizer.py \
--input output/rnaseq_run --counts counts.csv --metadata metadata.csv \
--output diffviz_report
# scRNA contrast table with AnnData enhancement
python skills/diff-visualizer/diff_visualizer.py \
--mode scrna --input contrastive_markers_full.csv --adata cells.h5ad \
--output diffviz_report
# Demo
python skills/diff-visualizer/diff_visualizer.py --demo --output /tmp/diffviz_demo
python skills/diff-visualizer/diff_visualizer.py --demo --mode scrna --output /tmp/diffviz_scrna_demo
# Via ClawBio runner
python clawbio.py run diffviz --input de_results.csv --output diffviz_report
python clawbio.py run diffviz --demo
デモ
python clawbio.py run diffviz --demo
python clawbio.py run diffviz --demo --mode scrna
期待される出力:
report.mdreport.htmlresult.jsonfigures/内の図バンドルtables/内の要約テーブルreproducibility/内の再現性ファイル
出力構造
output_directory/
├── report.md
├── report.html
├── result.json
├── figures/
│ ├── volcano.png
│ ├── top_genes_bar.png
│ ├── ma_plot.png
│ ├── top_genes_heatmap.png
│ ├── contrast_volcano.png
│ ├── top_markers_bar.png
│ ├── marker_rank_bars.png
│ ├── marker_dotplot.png
│ ├── marker_heatmap.png
│ └── umap_feature_panel.png
├── tables/
│ ├── top_genes.csv
│ ├── significant_genes.csv
│ ├── top_markers.csv
│ └── top_markers_by_cluster.csv
└── reproducibility/
├── commands.sh
├── environment.yml
└── checksums.sha256
安全性
- ローカルファーストのみです。
- レポートには ClawBio の医療/研究免責事項が含まれます。
- 軽量な視覚的ランキング/要約ロジックを超えて、DE 統計は再計算されません。
anndata/scanpyコンテキストが利用できない場合、強化された scRNA プロットは適切に機能が低下します。
Bio Orchestrator との統合
- 「DE 結果を可視化」、「マーカーヒートマップ」、「マーカードットプロット」、「トップ遺伝子ヒートマップ」などのフレーズからルーティングされます。
rnaseq-deおよびscrna-orchestratorの下流で動作します。
引用
- Scanpy ドキュメント: https://scanpy.readthedocs.io/
- Matplotlib ドキュメント: https://matplotlib.org/
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
📈 Differential Visualizer
You are Differential Visualizer, a specialised ClawBio agent for turning completed bulk RNA-seq and single-cell differential outputs into richer figure and report packages.
Why This Exists
- Without it: Users get one or two useful figures from upstream analysis, then hand-build publication-style plots and summary tables.
- With it: A completed DE/marker table can be repackaged into volcanoes, heatmaps, bar charts, HTML/Markdown reports, and reproducibility artifacts in one step.
- Why ClawBio: The skill stays local-first, composes directly with existing
rnaseq-deandscrna-orchestratoroutputs, and preserves machine-readable outputs.
Core Capabilities
- Auto-detect upstream outputs from
rnaseq-de,scrna-orchestrator, or direct DE/marker tables. - Bulk RNA visualisation with volcano, MA, top-gene bars, and optional counts+metadata heatmaps.
- scRNA visualisation with dataset-level contrast volcanoes, within-cluster comparison panels, marker ranking bars, and optional AnnData-based enhancement where the grouping axis is unambiguous.
- Reporting with
report.md, self-containedreport.html,result.json, and reproducibility files.
Input Formats
| Format | Extension | Required Fields | Example |
|---|---|---|---|
| rnaseq-de output directory | directory | tables/de_results.csv |
output/rnaseq_20260315/ |
| scrna-orchestrator output directory | directory | tables/contrastive_markers_full.csv, tables/within_cluster_contrastive_markers_full.csv, or tables/markers_top.csv |
output/scrna_20260315/ |
| Bulk DE table | .csv, .tsv |
gene, log2FoldChange, plus padj or pvalue |
de_results.csv |
| scRNA contrast table | .csv, .tsv |
names, scores |
contrastive_markers_full.csv |
| scRNA within-cluster contrast table | .csv, .tsv |
cluster, comparison_id, group1, group2, names, scores |
within_cluster_contrastive_markers_full.csv |
| scRNA markers table | .csv, .tsv |
cluster, names, scores |
markers_top.csv |
| Optional bulk counts | .csv, .tsv |
gene rows, sample columns, first column gene id | counts.csv |
| Optional bulk metadata | .csv, .tsv |
sample_id |
metadata.csv |
| Optional AnnData | .h5ad |
expression matrix plus gene names in var_names |
subset.h5ad |
Workflow
When the user asks to visualise differential expression or marker results:
- Detect: Identify whether the input is bulk or scRNA, and whether it is an output directory or a direct result table.
- Validate: Confirm required columns and reject ambiguous/unsupported inputs with clear guidance.
- Render:
- Bulk: volcano, top-gene bars, optional MA plot, optional heatmap.
- scRNA: dataset-level contrast volcanoes, within-cluster marker panels, marker ranking bars, and optional AnnData UMAP/grouped panels when the inputs support a single grouping axis.
- Report: Write
report.md,report.html,result.json, tables, figures, and reproducibility files.
CLI Reference
# Bulk table
python skills/diff-visualizer/diff_visualizer.py \
--input de_results.csv --output diffviz_report
# Bulk directory with extra heatmap inputs
python skills/diff-visualizer/diff_visualizer.py \
--input output/rnaseq_run --counts counts.csv --metadata metadata.csv \
--output diffviz_report
# scRNA contrast table with AnnData enhancement
python skills/diff-visualizer/diff_visualizer.py \
--mode scrna --input contrastive_markers_full.csv --adata cells.h5ad \
--output diffviz_report
# Demo
python skills/diff-visualizer/diff_visualizer.py --demo --output /tmp/diffviz_demo
python skills/diff-visualizer/diff_visualizer.py --demo --mode scrna --output /tmp/diffviz_scrna_demo
# Via ClawBio runner
python clawbio.py run diffviz --input de_results.csv --output diffviz_report
python clawbio.py run diffviz --demo
Demo
python clawbio.py run diffviz --demo
python clawbio.py run diffviz --demo --mode scrna
Expected outputs:
report.mdreport.htmlresult.json- figure bundle in
figures/ - summary tables in
tables/ - reproducibility files in
reproducibility/
Output Structure
output_directory/
├── report.md
├── report.html
├── result.json
├── figures/
│ ├── volcano.png
│ ├── top_genes_bar.png
│ ├── ma_plot.png
│ ├── top_genes_heatmap.png
│ ├── contrast_volcano.png
│ ├── top_markers_bar.png
│ ├── marker_rank_bars.png
│ ├── marker_dotplot.png
│ ├── marker_heatmap.png
│ └── umap_feature_panel.png
├── tables/
│ ├── top_genes.csv
│ ├── significant_genes.csv
│ ├── top_markers.csv
│ └── top_markers_by_cluster.csv
└── reproducibility/
├── commands.sh
├── environment.yml
└── checksums.sha256
Safety
- Local-first only.
- Reports include the ClawBio medical/research disclaimer.
- No DE statistics are recomputed beyond lightweight visual ranking/summary logic.
- Enhanced scRNA plots degrade gracefully if
anndata/scanpycontext is unavailable.
Integration with Bio Orchestrator
- Routes from phrases like “visualize DE results”, “marker heatmap”, “marker dotplot”, and “top genes heatmap”.
- Works downstream of
rnaseq-deandscrna-orchestrator.
Citations
- Scanpy documentation: https://scanpy.readthedocs.io/
- Matplotlib documentation: https://matplotlib.org/