site-ranking

Rank ClinicalTrials.gov clinical trial sites (facilities) for a condition/sponsor/topic using a deterministic Python script (search + optional OpenAlex standardization + NetworkX centrality/frequency + post-ranking geographic filters). Use this skill whenever the user asks for “top sites”, “best sites”, “site ranking”, “hub sites”, “centrality/PageRank of sites”, or wants site recommendations by geography (country/state/city) for clinical trials.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "site-ranking" with this command: npx skills add jujae/trial-optimizer/jujae-trial-optimizer-site-ranking

Site Ranking (standalone)

This skill provides a deterministic implementation of ds_ai_platform-style site ranking:

  1. Search ClinicalTrials.gov API v2 for studies.
  2. (Optional, default) Standardize facility names via OpenAlex to help deduplicate.
  3. Build a site co-participation network (two sites are connected if they appear in the same trial).
  4. Rank sites by either:
    • frequency (most trials)
    • network centrality (degree, pagerank, betweenness, closeness, eigenvector)
  5. Apply optional filters after ranking (country/state/city/etc.).

Dependencies

Install on your server:

pip install -r site-ranking/requirements.txt

Prompt conventions (critical)

Location vs filters

  • If the user asks for trials in a location (e.g., “trials in California”), put that in search.location.
  • If the user asks for top sites in a location (e.g., “top US sites for breast cancer”), do NOT constrain the initial search with search.location; instead apply ranking.filters after ranking (e.g., { "country": "United States" }).

Rationale: centrality rankings are more informative with a broader network; filtering is safer after ranking.

Metric choice

  • Use frequency for “most trials” / footprint.
  • Use degree (default) or pagerank for collaboration hubs / influence.

How to run

  1. Create a payload file payload.json.
  2. Run:
python site-ranking/scripts/run_site_ranking.py --file payload.json --pretty

Payload schema

Provide exactly one of:

  • search: run full pipeline (search → optional standardize → rank)
  • trial_data: skip search and rank the provided ClinicalTrials-like JSON

Fields:

  • search: object with keys condition, intervention, other_terms, sponsor, status, location, max_results
  • ranking: object with keys:
    • metric: frequency|degree|betweenness|closeness|eigenvector|pagerank
    • top_n: integer
    • filters: object (applied after ranking). Common keys: country, state, city, facility, openalex_id.
    • standardize_openalex: boolean (default true)

Optional:

  • email_for_api: passed as OpenAlex mailto (or set env var EMAIL_FOR_API).

Example payload

{
  "search": {
    "condition": "breast cancer",
    "other_terms": "AREA[Phase]Phase 3",
    "status": "RECRUITING",
    "location": "",
    "max_results": 100
  },
  "ranking": {
    "metric": "degree",
    "top_n": 10,
    "filters": {"country": "United States"},
    "standardize_openalex": true
  }
}

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

trial-optimizer-graphical

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Cortex Engine

Persistent cognitive memory for AI agents — query, record, review, and consolidate knowledge across sessions with spreading activation, FSRS scheduling, and...

Registry SourceRecently Updated
Coding

AI Image & Video Toolkit — Free Upscale, Face Enhance, BG Remove & Generation

Free local AI image and video processing toolkit with cloud AI generation. Local tools: upscale (Real-ESRGAN), face enhance (GFPGAN/CodeFormer), background r...

Registry SourceRecently Updated