r/bioinformaticsdev • u/Snoo_74391 • 2d ago
Release An MIT-licensed Open Targets explorer for rare-disease medicines, and what patient audits caught
Patients across much of the world struggle to find out which medicines are already approved or in clinical trials for a rare condition. That information is scattered across regulatory labels, trial registries, and specialist bioinformatics portals. Moonlight is an open-source (MIT-licensed) web explorer where you type a condition and see medicines linked to it sorted into Approved, Being studied, and New clues, plus what was left out, with each card pointing back to its source document.
One example shows why this matters: a person living with limb-girdle muscular dystrophy in Kochi, southern India, used the site to locate a clinical trial in the United States, and agreed to us mentioning that. For people already treated at a major research centre, this adds little; where specialists are scarce, having source-linked options on one page changes access.
How the pipeline works
Source of record: Everything reads directly from the Open Targets Platform API (platform.opentargets.org). Moonlight keeps no separate proprietary database; it acts as a readable window onto Open Targets paired with audited override files in the repository.
Deterministic sorting in Python: Small focused modules under moonlight/ (fetch.py, filter.py, engine.py, rank.py, records.py, protein.py, explain.py, translate.py, cache.py, reports.py, api.py) map everyday condition names to MONDO, EFO, and HP identifiers, pull associated protein targets and linked drugs, and classify entries with ordinary Python rules rather than a model at query time. Drugs approved for the condition go to Approved, drugs in trials for it go to Being studied, drugs approved elsewhere acting on a disease-linked protein go to New clues, and unapproved compounds or unclear links go to Left out. Salt forms collapse into a single card, and clue cards carry a gene-evidence line plus a UniProt protein summary.
Stack and caching: Python 3.13, FastAPI, Uvicorn, Requests/HTTPX, a single static HTML/JavaScript frontend (web/index.html), Docker on Google Cloud Run (asia-south1), and a three-tier cache (in-memory, /tmp disk, and Google Cloud Firestore for raw Open Targets responses so cached pages survive container restarts).
Offline label auditing and tests: No language model invents drug-disease links on the fly. Batch scripts read FDA, EMA, DailyMed, and PMDA labels offline to flag mismatches against Open Targets. Corrections reported by rare-disease patient communities become tickets, get checked against regulator labels, land in versioned JSON files (corrections.json, approvals.json, limits.json, left_out.json), and are locked in by pytest tests running on saved Open Targets fixtures.
Two early wins
Upstream and patient impact: Beyond the Kochi trial find, Open Targets confirmed seven wrong approval records we reported and scheduled the fix for release 26.12 (documented on community.opentargets.org thread 2105).
Community feedback and recent engineering: We have logged 17 feedback tickets from rare-disease subreddit threads so far, feeding 102 audited entries in corrections.json and 29 hand-verified entries in approvals.json. Just today (25 Nov, pull requests #77 to #91 on main), we merged gene-evidence lines on clue cards, an inline Report button saving user flags to Firestore, in-memory plus Firestore Open Targets caching, regulator-label caution flags, 23 fixed wrong source links, hand-written withdrawal notes, and Open Source Collective governance files.
Two honest constraints
Upstream approval noise: Sitting directly on Open Targets means wrong approval statuses, generic PMDA links, or outdated trial entries surface on Moonlight until audited against primary regulator labels.
Out-of-pocket verification cost: Running batch label checks across thousands of drug-disease pairs uses model API credits paid out of pocket, and the project has no ads, no paid tier, and no data selling.
Live site: https://www.moonlightclues.com Repository (MIT): https://github.com/Moonlight-Clues/moonlight
Primary ask: we are looking for AI/model API credits, or introductions to organisations and programmes that grant them to open-source public-interest projects, so we can finish auditing regulator labels across rare conditions.
Secondary ask: if you work on Python bioinformatics tooling, regulator data, or partner with clinicians and patient groups in India or elsewhere, feedback and pull requests on where the Open Targets pipeline misclassifies drugs are very welcome.






