claw-semantic-sim

Measure semantic isolation of disease research using PubMed abstracts and dense embeddings.

1.1k|238|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/ClawBio/ClawBio --skill claw-semantic-sim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claw-semantic-sim
Source: https://github.com/ClawBio/ClawBio/tree/main/skills/claw-semantic-sim
Command: npx skills add https://github.com/ClawBio/ClawBio --skill claw-semantic-sim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Biomedical research literature is often siloed and unevenly connected, making it difficult to quantify which diseases are isolated from cross-disciplinary knowledge and where research transfer is most likely to succeed. This Skill provides robust, reproducible metrics that reveal semantic isolation and knowledge transfer potential across the global biomedical corpus so researchers and funders can prioritise interventions and collaborations.

Core Features & Use Cases

  • PubMed retrieval with quality filtering: checkpointed fetching of abstracts (2000–2025) with rate-limit handling and minimum coverage thresholds.
  • PubMedBERT embeddings: batched 768-dimensional embeddings with Apple MPS acceleration and CPU fallback, stored in compressed HDF5 with checksums.
  • Semantic equity metrics: computes Semantic Isolation Index (SII), Knowledge Transfer Potential (KTP), Research Clustering Coefficient (RCC), and temporal semantic drift.
  • Analysis & visualization: generates publication-quality 4-panel figures, ranking tables, statistical tests (Welch's t-test, Cohen's d), and a reproducibility bundle.
  • Use Case: rapidly identify neglected tropical diseases (NTDs) that occupy knowledge silos to guide research funding, collaboration, and literature synthesis.

Quick Start

Run the demo to generate the full four-panel report using precomputed embeddings by executing python semantic_sim.py --demo --output demo_report on your machine.

Frequently Asked Questions about claw-semantic-sim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure semantic isolation of disease research across PubMed abstracts?

You can measure semantic isolation by retrieving PubMed abstracts, generating PubMedBERT embeddings, and computing metrics like the Semantic Isolation Index and Research Clustering Coefficient to quantify knowledge silos across diseases.

Can I use this to identify knowledge transfer potential for neglected tropical diseases?

Yes, the workflow calculates a Knowledge Transfer Potential metric alongside the Semantic Isolation Index across a taxonomy of 175 GBD diseases. This specifically highlights neglected tropical diseases occupying knowledge silos to guide research funding and collaboration.

How do I compute temporal semantic drift for cross-disease literature comparison?

The tool calculates temporal semantic drift by analyzing PubMed abstracts from 2000 to 2025 using checkpointed retrieval and batch PubMedBERT embeddings. This tracks how disease research concepts shift over time for cross-disease comparison and visualization.

Does the PubMed retrieval pipeline handle rate limits and minimum coverage thresholds?

Yes, the PubMed retrieval pipeline includes quality filtering with rate-limit handling and enforces minimum coverage thresholds. It uses checkpointed fetching to ensure robust data acquisition for biomedical literature analysis.

What statistical tests are available for cross-disease semantic similarity analysis?

The analysis includes Welch's t-test and Cohen's d for statistical significance testing between disease groups. It generates publication-quality figures, ranking tables, and a reproducibility bundle for cross-disease comparison.