← 返回 Skills 市场
xutaoguo55

Bioinformatics Plot Generator

作者 xutaoguo55 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
44
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bioinformatics-plot-generator
功能描述
Route to the correct publication-quality plot sub-skill for volcano plots, heatmaps, box/violin plots, scatter plots, bar charts, MA plots, correlation matri...
使用说明 (SKILL.md)

Bioinformatics Plot Generator

Purpose

This is the router skill for all bioinformatics plotting tasks. It selects and delegates to the appropriate sub-skill based on the type of plot requested. Each sub-skill is a fully self-contained, publication-quality plotting tool with 40–70 user-configurable parameters.

Sub-skills

Sub-skill Location Plot types
plot-volcano plot-volcano/ Volcano plots (DE/CRISPR/GWAS results)
plot-heatmap plot-heatmap/ Heatmaps with clustering and annotations
plot-box-violin plot-box-violin/ Box plots, violin plots, raincloud plots
plot-scatter-bar plot-scatter-bar/ Scatter, bar, MA, correlation matrix, bubble

Routing guide

Use this table to pick the correct sub-skill:

User request signal Sub-skill to use
"volcano plot", "differential expression", "CRISPR screen hits", "-log10 p-value vs fold change" plot-volcano
"heatmap", "expression matrix", "gene expression heatmap", "z-score heatmap", "clustered heatmap" plot-heatmap
"boxplot", "violin plot", "box and whisker", "raincloud", "distribution comparison", "group comparison" plot-box-violin
"scatter plot", "correlation plot", "bar chart", "bar graph", "MA plot", "correlation matrix", "bubble chart", "bubble plot" plot-scatter-bar

Use when

  • The user wants any of the supported plot types from tabular data or a numeric matrix
  • The user wants a figure suitable for publication (300 DPI PNG + SVG)
  • The user has a result table (differential expression, CRISPR screen, proteomics, etc.) and wants to visualize it

Do not use when

  • The user wants genome browser tracks or signal plots from BAM/bigWig/BEDGraph files
  • The user wants protein 3D structure visualization
  • The user wants single-cell UMAP/tSNE trajectory plots requiring Scanpy/Seurat
  • The user wants interactive plots (use a Plotly skill instead)

Sub-skill details

plot-volcano

Use for: Volcano plots from differential expression, CRISPR screens, GWAS, proteomics, or any table with a fold-change column and a p-value column.

Key features:

  • Symmetric or asymmetric fold-change cutoffs (--fc-cutoff, --fc-cutoff-neg)
  • Color by discrete group (up/down/ns) or by continuous column with a colormap
  • Three highlight layers: up-regulated, down-regulated, other (custom gene lists or files)
  • Top-N auto-annotation with adjustText label collision avoidance
  • Quadrant counts displayed on plot
  • 300 DPI PNG + SVG dual output
  • Annotated TSV output table with assigned group per feature

Script: plot-volcano/scripts/plot_volcano.py

Minimal run:

python plot-volcano/scripts/plot_volcano.py \
  --input results.tsv \
  --feature-col gene \
  --x-col log2FoldChange \
  --p-col padj \
  --output volcano.png

plot-heatmap

Use for: Heatmaps from any numeric matrix — gene expression, protein abundance, methylation, pathway scores, etc.

Key features:

  • Hierarchical clustering with dendrogram display (scipy linkage methods: ward, complete, average, single)
  • Row and column annotation bars from separate TSV files with custom color palettes
  • Variance-based row filtering (keep top N most variable rows)
  • Z-score normalization per row or column with optional clipping
  • Cell value annotation (show numbers inside cells)
  • Auto figure sizing based on matrix dimensions
  • Flexible colormap, vmin/vmax, missing value handling

Script: plot-heatmap/scripts/plot_heatmap.py

Minimal run:

python plot-heatmap/scripts/plot_heatmap.py \
  --input expression_matrix.tsv \
  --index-col gene \
  --output heatmap.png

plot-box-violin

Use for: Comparing distributions across groups — box plots, violin plots, combined box+violin, or raincloud plots.

Key features:

  • Four plot types: box, violin, both (violin with inner box), raincloud
  • Jittered individual points with customizable size and alpha
  • Multi-group statistical testing: auto, all_pairs, vs_first, vs_last
  • Tests: Mann–Whitney U, Welch t-test, Dunn's test (pure numpy, no scipy dependency)
  • Multiple testing correction: Bonferroni or Benjamini–Hochberg FDR
  • Significance bracket annotations drawn above each pair
  • Horizontal orientation option
  • Custom group ordering and color palettes

Script: plot-box-violin/scripts/plot_box_violin.py

Minimal run:

python plot-box-violin/scripts/plot_box_violin.py \
  --input data.tsv \
  --value-col expression \
  --group-col condition \
  --plot-type violin \
  --output violin.png

plot-scatter-bar

Use for: Five plot types in one script — scatter plots, bar charts, MA plots, correlation matrices, and bubble charts.

Key features:

Scatter:

  • Linear regression line with 95% CI band (bootstrap)
  • Pearson/Spearman correlation annotation
  • Optional marginal histograms
  • Highlight gene list with separate color/label

Bar:

  • Grouped or stacked bar charts
  • Error bars: SEM, SD, or 95% CI
  • Value labels on bars
  • Horizontal orientation

MA (ratio vs. mean):

  • M-A plot (log-ratio vs. average intensity)
  • LOESS smoothing line (tricubic kernel, pure numpy)
  • Significant feature highlighting

Correlation matrix:

  • Pairwise correlation heatmap (Pearson or Spearman)
  • Hierarchical clustering of samples
  • Correlation values displayed in cells

Bubble:

  • Bubble chart with x/y/size/color columns
  • Log-scale size normalization
  • Separate size and color legends

Script: plot-scatter-bar/scripts/plot_scatter_bar.py

Minimal runs:

# Scatter
python plot-scatter-bar/scripts/plot_scatter_bar.py \
  --input data.tsv --plot-type scatter \
  --x-col sample1 --y-col sample2 --output scatter.png

# Bar chart
python plot-scatter-bar/scripts/plot_scatter_bar.py \
  --input counts.tsv --plot-type bar \
  --value-col count --group-col condition --output bar.png

# MA plot
python plot-scatter-bar/scripts/plot_scatter_bar.py \
  --input de_results.tsv --plot-type ma \
  --mean-col baseMean --ratio-col log2FC --output ma.png

# Correlation matrix
python plot-scatter-bar/scripts/plot_scatter_bar.py \
  --input expr_matrix.tsv --plot-type corrmat \
  --index-col gene --output corrmat.png

# Bubble chart
python plot-scatter-bar/scripts/plot_scatter_bar.py \
  --input enrichment.tsv --plot-type bubble \
  --x-col NES --y-col pathway \
  --size-col gene_count --color-col padj --output bubble.png

Common style parameters (all sub-skills)

Parameter Default Description
--fig-width auto Figure width in inches
--fig-height auto Figure height in inches
--dpi 300 Output resolution
--font-family sans-serif Font family
--base-fontsize 11 Base font size (pt)
--title Plot title
--xlabel auto X-axis label
--ylabel auto Y-axis label
--output required Output PNG path
--output-svg off Also save SVG alongside PNG

Procedure for routing

  1. Identify the plot type from the user's request.
  2. Read the corresponding sub-skill SKILL.md (e.g., plot-volcano/SKILL.md) for the full parameter reference.
  3. Identify required input columns from the user's data or description.
  4. Construct the command with appropriate parameters from the parameter decision guide in the sub-skill SKILL.md.
  5. Run the script and return the output path.
  6. If the user requests customization beyond the defaults, consult the sub-skill's parameter decision guide and full argument list.
安全使用建议
Before installing, expect the skill to run local Python plotting scripts against the data files you provide and to write image and optional TSV outputs. Use it in a normal project directory, review the generated files, and consider pinning dependency versions if reproducibility or supply-chain control is important.
能力评估
Purpose & Capability
The artifacts consistently describe publication-quality bioinformatics plotting, and the scripts implement CSV/TSV parsing, statistical calculations, and matplotlib figure generation for that purpose.
Instruction Scope
Runtime instructions are task-scoped and user-directed; the package also includes a survival plotting sub-skill not listed in the top-level routing table, but it is still coherent with biomedical plotting rather than a security concern.
Install Mechanism
Installation uses common Python plotting/scientific dependencies such as numpy, pandas, matplotlib, scipy, and adjustText; dependencies are not fully pinned, which is a normal supply-chain consideration but not suspicious by itself.
Credentials
The scripts operate on user-specified local input files and create user-specified PNG/SVG/TSV outputs; no network calls, credential access, browser/session access, subprocess execution, or broad local indexing were found.
Persistence & Privilege
No background workers, autorun hooks, privilege escalation, persistence mechanisms, destructive file operations, or hidden configuration changes were identified.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bioinformatics-plot-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bioinformatics-plot-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Bioinformatics Plot Generator 1.0.0 – Initial Release - Provides a central router to publication-quality plotting sub-skills for common bioinformatics plot types: volcano, heatmap, box/violin/raincloud, scatter, bar, MA, correlation matrix, and bubble charts. - Guides users to the correct sub-skill based on request details and data type. - Each sub-skill supports 40–70 configurable parameters, with standardized styling options (PNG/SVG output, DPI, font, etc.). - Not for interactive plots, genome browser tracks, protein 3D structures, or single-cell embeddings. - Includes quick routing reference tables and detailed usage documentation for each plot type.
元数据
Slug bioinformatics-plot-generator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bioinformatics Plot Generator 是什么?

Route to the correct publication-quality plot sub-skill for volcano plots, heatmaps, box/violin plots, scatter plots, bar charts, MA plots, correlation matri... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 44 次。

如何安装 Bioinformatics Plot Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bioinformatics-plot-generator」即可一键安装,无需额外配置。

Bioinformatics Plot Generator 是免费的吗?

是的,Bioinformatics Plot Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bioinformatics Plot Generator 支持哪些平台?

Bioinformatics Plot Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bioinformatics Plot Generator?

由 xutaoguo55(@xutaoguo55)开发并维护,当前版本 v1.0.0。

💬 留言讨论