返回顶部
g

graph-interpretation图表解读

Use when interpreting scientific graphs and charts, explaining data visualizations for research presentations, writing figure captions for publications, or analyzing trends in clinical research data. Converts complex visual data into clear, accurate explanations for academic papers, clinical reports, and public presentations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
122
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

graph-interpretation

科学图表解读器

精确清晰地解读和解释科研出版物、临床演示和学术交流中的科学图表、图表和数据可视化。

快速开始

python
from scripts.graph_interpreter import GraphInterpreter

interpreter = GraphInterpreter()

综合图表分析

analysis = interpreter.interpret( imagepath=figure1.png, graphtype=kaplanmeier, context=oncologyphase3trial, audience=clinicians )

print(analysis.statistical_summary)
print(analysis.clinical_significance)
print(analysis.suggested_caption)

核心能力

1. 多类型图表分析

python
analysis = interpreter.analyze(
graphtype=forestplot,
data={
studies: [研究A, 研究B, 研究C],
effect_sizes: [1.2, 0.8, 1.5],
confidence_intervals: [[1.0, 1.4], [0.6, 1.0], [1.2, 1.8]],
overall_effect: 1.15,
heterogeneity_p: 0.04
}
)

支持的图表类型:

图表类型常见用途需提取的关键要素
Kaplan-Meier曲线生存分析中位生存期、HR、95% CI、log-rank p值
森林图
荟萃分析 | 效应量、CI、异质性(I²)、权重 |
| ROC曲线 | 诊断准确性 | AUC、灵敏度、特异度、最佳截断值 |
| 箱线图 | 分布比较 | 中位数、IQR、异常值、须线 |
| 散点图 | 相关性 | R²、p值、趋势线、异常值 |
| 柱状图 | 组间比较 | 均值、SEM/SD、显著性标记 |
| 热图 | 表达组学 | 尺度、聚类、行列注释 |
| 火山图 | 差异分析 | 倍数变化、p值、FDR阈值 |

2. 统计解读

python
stats = interpreter.extract_statistics(
graph_data,
extract=[
p_values,
confidence_intervals,
effect_sizes,
sample_sizes,
statistical_tests
]
)

统计报告标准:

python

示例输出结构


{
primary_outcome: {
measure: 风险比,
value: 0.72,
ci_95: [0.58, 0.89],
p_value: 0.003,
interpretation: 风险降低32%
},
secondary_outcomes: [...],
significance_level: 0.05,
multiplecomparisonadjusted: True
}

3. 面向不同受众的解释

python
explanations = interpreter.generatemultiaudience(
analysis,
audiences=[researchers, clinicians, patients, policy_makers]
)

解释模板:

面向研究人员:

Kaplan-Meier分析显示实验组具有统计学显著性的生存优势

(HR 0.72, 95% CI 0.58-0.89, p=0.003)。中位生存期从14.2个月

提高到19.6个月。比例风险假设已得到验证(p=0.42)。

面向临床医生:

该试验显示,接受新治疗的患者平均比标准治疗的患者多存活约5个月。

死亡风险降低32%具有显著性和临床意义。建议符合条件的患者考虑此方案。

面向患者:

研究发现,接受新治疗的人比接受标准治疗的人活得更久。

大约每3名患者中就有1名从新治疗中获益。副作用可控。

4. 图注生成

python
caption = interpreter.generate_caption(
analysis,
style=journal, # 或 presentation, poster
word_limit=250,
include_statistics=True
)

图注结构:

图X. [简要标题]。 [展示内容:X轴显示...,Y轴显示...,
线条/柱状图代表...]。 [关键发现:A组显示...与B组相比...]。
[统计信息:HR 0.72 (95% CI 0.58-0.89), p=0.003]。
[结论:这表明...]。

5. 批判性评估

python
appraisal = interpreter.critical_appraisal(
graph_data,
check=[
appropriategraphtype,
axis_scaling,
errorbarspresent,
samplesizeadequate,
confounding_controlled,
generalizability
]
)

常见图表陷阱:

问题影响更好的方法
Y轴截断夸大差异从0开始或明确标记断点
无误差条
隐藏变异性 | 包含SD、SEM或95% CI |
| 3D效果 | 扭曲感知 | 使用2D并清晰标注 |
| 双Y轴 | 混淆比较 | 分开图表或使用标准化尺度 |
| p值操纵标记 | 多重比较 | 调整p值、Bonferroni校正 |

CLI使用

bash

综合分析


python scripts/graph_interpreter.py \
--image survival_curve.png \
--type kaplan_meier \
--context phase3oncology \
--audience clinicians \
--output analysis.json

生成发表图注

python scripts/graph_interpreter.py \ --image forest_plot.png \ --type forest_plot \ --generate caption \ --journal-style nature \ --word-limit 200

批量处理图表

python scripts/graph_interpreter.py \ --batch figures/ \ --output report.html \ --template comprehensive

常见模式

模式1:临床试验主要终点

python

分析生存曲线


analysis = interpreter.interpret(
graphtype=kaplanmeier,
primaryendpoint=overallsurvival,
treatment_arms=[Experimental, Control],
keymetrics=[medianos, hr, ci, p_value]
)

生成监管就绪摘要

regulatorysummary = interpreter.generateregulatory_summary( analysis, guideline=ICH_E3 )

模式2:荟萃分析森林图

python

解读荟萃分析


analysis = interpreter.interpretforestplot(
studies=included_studies,
check_heterogeneity=True,
assesspublicationbias=True
)

生成GRADE评估

graderating = interpreter.generategrade_rating(analysis)

模式3:诊断准确性ROC

python

分析诊断测试


analysis = interpreter.interpret_roc(
curves=[Test A, Test B, Combined],
optimal_cutoffs=True,
clinical Utility=True
)

临床决策支持

decisionaid = interpreter.generatedecision_aid(analysis)

质量检查清单

解读前:

  • - [ ] 图表类型适合数据
  • [ ] 坐标轴清晰标注单位
  • [ ] 样本量已标明
  • [ ] 统计检验已指定
  • [ ] 置信区间已呈现

解读中:

  • - [ ] 效应量已计算
  • [ ] 临床意义已评估
  • [ ] 置信区间已解读
  • [ ] 局限性已注明
  • [ ] 泛化性已考虑

解读后:

  • - [ ] 解释适合受众
  • [ ] 统计术语已解释
  • [ ] 不确定性已传达
  • [ ] 可操作见解已突出

最佳实践

统计沟通:

  • - 始终报告点估计的置信区间
  • 区分统计显著性和临床显著性
  • 注明局限性和泛化性
  • 观察性研究中避免因果语言

视觉分析:

  • - 检查坐标轴尺度是否存在扭曲
  • 注意截断轴或断点
  • 识别异常值及其影响
  • 验证误差条表示方式(SD vs SEM)

常见陷阱

相关=因果:X导致Y,因为它们相关
谨慎解读:X与Y相关;其他因素可能解释这一现象

夸大显著性:高度显著(p<0.001)意味着效应量大
适当表述:统计显著但效应量适中(d=0.2)

忽略置信区间:仅报告点估计
区间报告:效应:1.5 (95% CI: 0.9-2.4),表明存在不确定性



技能ID: 209 | 版本: 1.0 | 许可证: MIT

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 graph-interpretation-1776079815 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 graph-interpretation-1776079815 技能

通过命令行安装

skillhub install graph-interpretation-1776079815

下载

⬇ 下载 graph-interpretation v0.1.0(免费)

文件大小: 5.27 KB | 发布时间: 2026-4-14 13:40

v0.1.0 最新 2026-4-14 13:40
Initial release – graph-interpretation skill for scientific data visualization analysis.

- Provides interpretation and explanation of scientific graphs and charts for research, clinical, and academic use.
- Supports multiple graph types including Kaplan-Meier, forest plot, ROC, box plot, scatter plot, bar chart, heatmap, and volcano plot.
- Extracts and reports statistical metrics such as hazard ratios, confidence intervals, p-values, and effect sizes.
- Generates audience-specific explanations and publication-ready figure captions.
- Includes a critical appraisal tool and quality checklist to identify common visualization issues and ensure reporting standards.
- Offers command-line and programmatic usage examples for figure analysis, caption generation, and batch processing.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部