Token导航 LogoToken导航TokenDH.com
研究检索权限需确认clawhub未标认证来源可访问clear审计提醒

heatmap-beautifier热图美化器

Agent Skill

heatmap-beautifier 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,436

周安装

139

GitHub Stars

公开资料未说明

下载量

1,079
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:heatmap-beautifier(热图美化器)
来源仓库:https://github.com/aipoch-ai/heatmap-beautifier
安装命令:
openclaw skills install heatmap-beautifier
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install heatmap-beautifier

简介

专业基因表达热图美化工具,自动添加聚类树与颜色注释轨迹。

  • 智能优化标签布局与配色方案,提升图表可读性与学术规范性。
  • 兼容主流基因数据分析流程,无缝集成现有工作流。
  • 安装命令:openclaw skills install heatmap-beautifier。
  • 输入数据格式需符合标准矩阵要求,否则可能影响渲染效果。

SKILL.md

name
heatmap-beautifier
description
Professional beautification tool for gene expression heatmaps, automatically adds clustering trees, color annotation tracks, and intelligently optimizes label layout.
license
MIT
skill-author
AIPOCH

Heatmap Beautifier

Professional beautification tool for gene expression heatmaps, automatically adds clustering trees, color annotation tracks, and intelligently optimizes label layout.

Input Validation

This skill accepts: CSV files containing gene expression matrices (genes as rows, samples as columns) for heatmap generation and beautification.

If the user's request does not involve heatmap generation or gene expression visualization — for example, asking to perform differential expression analysis, run statistical tests, or generate other chart types — do not proceed. Instead respond:

"heatmap-beautifier is designed to generate and beautify gene expression heatmaps from expression matrix data. Your request appears to be outside this scope. Please provide a CSV expression matrix file, or use a more appropriate tool for your task."

Do not continue the workflow when the request is out of scope, missing the required input CSV, or would require unsupported assumptions. For missing inputs, state exactly which fields are missing.

Quick Check

python -m py_compile scripts/main.py
python scripts/main.py --help
# Demo mode (no CSV required):
python scripts/main.py --demo --output demo_heatmap.pdf

When to Use

  • Beautify gene expression heatmaps with clustering trees and annotation tracks
  • Generate publication-ready heatmap output (PDF, PNG, SVG) with optimized label layout
  • Add row/column annotation color bars to expression matrices
  • Standardize heatmap styling for manuscript figures

Workflow

  1. Validate input — confirm the request is within scope before any processing.
  2. Confirm the user objective, required inputs, and non-negotiable constraints.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Features

  • Automatic Clustering: Adds row/column clustering trees based on hierarchical clustering
  • Annotation Tracks: Supports multiple color annotation tracks (sample grouping, gene classification, etc.)
  • Smart Labels: Automatically calculates optimal font size to avoid row/column label overlap
  • Flexible Color Schemes: Built-in multiple professional scientific research color schemes
  • Export Options: Supports PDF, PNG, SVG formats
  • Demo Mode: Run --demo to generate a synthetic 20×10 matrix without a real CSV

Dependencies

pip install seaborn matplotlib scipy pandas numpy

Usage

Basic Usage

from skills.heatmap_beautifier.scripts.main import HeatmapBeautifier

hb = HeatmapBeautifier()
hb.create_heatmap(
    data_path="expression_matrix.csv",
    output_path="output/heatmap.pdf"
)

Command Line Usage

python -m skills.heatmap_beautifier.scripts.main \
    --input expression_matrix.csv \
    --output heatmap.pdf

python -m skills.heatmap_beautifier.scripts.main \
    --input expression_matrix.csv \
    --output heatmap.pdf \
    --row-cluster \
    --col-cluster \
    --row-annotations row_annot.json \
    --col-annotations col_annot.json \
    --title "Gene Expression"

# Demo mode (no CSV required)
python -m skills.heatmap_beautifier.scripts.main --demo --output demo_heatmap.pdf

# Save clustering metadata to JSON for agent consumption
python -m skills.heatmap_beautifier.scripts.main \
    --input expression_matrix.csv \
    --output heatmap.pdf \
    --output-json heatmap_metadata.json

Parameters

ParameterTypeDefaultRequiredDescription
--data-path, -dstring-Yes*Path to input data file (CSV)
--demoflag-NoGenerate synthetic 20×10 demo matrix
--output-path, -ostringheatmap.pngNoOutput file path
--titlestringGene Expression HeatmapNoHeatmap title
--cmapstringRdBu_rNoColor map
--centerfloat0NoColor center value
--vminfloat-2NoMinimum value for color scale
--vmaxfloat2NoMaximum value for color scale
--row-clusterbooltrueNoEnable row clustering
--col-clusterbooltrueNoEnable column clustering
--standard-scalestringNoneNoStandardization: row, col, None
--z-scoreintNoneNoZ-score: 0 (row), 1 (col), None
--figsizetuple(12, 10)NoFigure size (width, height)
--dpiint300NoResolution (dots per inch)
--formatstringpdfNoOutput format (pdf, png, svg)
--output-jsonstring-NoSave clustering metadata (gene_order, sample_order, annotation_colors) to JSON

*One of --data-path or --demo is required.

Input Data Format

Expression Matrix (CSV)

,sample1,sample2,sample3,sample4
Gene_A,2.5,-1.2,0.8,-0.5
Gene_B,-0.8,1.5,-2.1,0.3
Gene_C,1.2,0.5,-0.7,1.8
  • First column: Gene names (row index)
  • First row: Sample names (column names)
  • Data: Expression values (e.g., log2 fold change, TPM, FPKM)

Color Schemes

  • "RdBu_r" — Red-Blue (classic differential expression)
  • "viridis" — Yellow-Purple (continuous data)
  • "RdYlBu_r" — Red-Yellow-Blue
  • "coolwarm" — Cool-Warm
  • "seismic" — Seismic
  • "bwr" — Blue-White-Red

Error Handling

  • If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
  • If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
  • If scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.
  • Do not fabricate files, citations, data, search results, or execution outcomes.
  • Exception handling: The script uses except (pd.errors.ParserError, UnicodeDecodeError, ValueError) for CSV parsing errors — not bare except. If you see a bare except in an older version, report it.
  • Error propagation: FileNotFoundError and ValueError are caught in main() with try/except (FileNotFoundError, ValueError) as e: print(f'Error: {e}', file=sys.stderr); sys.exit(1) and reported to stderr with exit code 1.

Fallback Behavior

If scripts/main.py fails or required inputs are incomplete:

  1. Report the exact failure point and error message.
  2. State what can still be completed (e.g., data validation without rendering).
  3. Manual fallback: verify CSV format has gene rows and sample columns, then re-run with minimal options: python -m skills.heatmap_beautifier.scripts.main --input data.csv --output out.png.
  4. Use --demo to verify the environment works without a real CSV.
  5. Do not fabricate execution outcomes or file contents.

Output Requirements

Every final response must make these items explicit when relevant:

  • Objective or requested deliverable
  • Inputs used and assumptions introduced
  • Workflow or decision path
  • Core result, recommendation, or artifact
  • Constraints, risks, caveats, or validation needs
  • Unresolved items and next-step checks

Response Template

Use the following fixed structure for non-trivial requests:

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

For stress/multi-constraint requests, also include:

  • Constraints checklist (compliance, performance, error paths)
  • Unresolved items with explicit blocking reasons

If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.

Notes

  1. Recommended to perform log2 transformation or standardization on data first
  2. Large datasets (>5000 rows) may take longer to process
  3. When there are too many rows/columns, some labels will be automatically hidden
  4. Default clustering uses Euclidean distance and Ward method

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.38%
按下载量换算964

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills