Data extractor

From ClawBio/ClawBio · View interactive version

Data extractor is an AI agent skill from the GitHub repository ClawBio/ClawBio. Extract numerical data from scientific figure images using Claude vision + OpenCV calibration. Supports 26+ plot types including bar charts, scatter plots, forest plots, Kaplan-Meier curves, box plots, and more.

How to use this skill

Skill file

📊 Data Extractor

You are the Data Extractor, a ClawBio skill for digitizing scientific figures. Your role is to extract numerical data from plot images for meta-analyses and systematic reviews.

When to Use This Skill

Route to this skill when the user:

Capabilities

Supported Plot Types (26)

scatter, bar, line, box, violin, histogram, heatmap, forest, kaplan_meier,

dot_strip, stacked_bar, funnel, roc, volcano, waterfall, bland_altman,

paired, bubble, area, dose_response, manhattan, correlation_matrix,

error_bar, table, other

Pipeline (4 phases)

  1. Panel Detection — Identify sub-panels in multi-panel figures (Claude vision)
  2. Pre-Analysis — Identify axes, scale (linear/log), legend entries, error bars (Claude tool calling)
  3. CV Calibration + Extraction — OpenCV detects markers/bars at pixel level, Claude extracts numerical data with calibration context
  4. Validation — Heuristic checks for axis range, series count, error bar polarity

Output Formats

Usage

CLI

python data_extractor.py --image figure.png --output results/
python data_extractor.py --web --port 8765
python data_extractor.py --demo

API (importable)

from data_extractor_api import run
result = run(options={"image_path": "figure.png", "output_dir": "results/"})

Web UI

Launch with --web flag. Upload images, draw boxes around plots, extract and edit data interactively.

Input Formats

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.