annotating-variants
Skill5.4k starsChanged 4 months agoApache-2.0View on GitHub
Annotates VCF variants and normalizes HGVS nomenclature with public, license-free annotators (Ensembl VEP REST, VEP/SnpEff/ANNOVAR offline) and links variants to gnomAD population frequencies and the clinical context OpenMed extracts. Use when the user wants to predict variant consequences, map HGVS to genomic coordinates, annotate a VCF, attach allele frequencies, or pair variants with phenotype/oncology context. Trigger keywords: VCF, HGVS, variant annotation, VEP, SnpEff, ANNOVAR, consequence, missense, gnomAD, allele frequency, GRCh38, rsID, transcript. Pairs adjacent to OpenMed: combine annotated variants with Genomics/Oncology entities and phenotype from openmed.analyze_text. Tools used are free; restricted clinical databases are user-supplied.
Trending
Quiet since September.about the whole repository
Who's talking about maziyarpanahi/openmed
- @yug1224.com“医療テキストの解析や個人情報の匿名化を端末内で完結できるヘルスケアAIツールっぽい 機密データを扱う医療関連の開発現場でかなり使えそう yug1224 starred maziyarpanahi/openmed…”Bluesky · Jun 11, 2026 · 3 likes
- @qdrddr.bsky.social“Local #PII #HIPAA data #anonymizer based on #OpenMed and runs on #Nvidia and Apple #MLX - entirely …”Bluesky · Jul 10, 2026 · 2 likes
- @technews4869.bsky.social“github.com/maziyarpanahi/o... GitHub - maziyarpanahi/openmed: Local-first healthcare AI: clinical NER & …”Bluesky · Jun 22, 2026 · 1 likes
- @dailygithubtrends.bsky.social“今日のGitHubトレンド maziyarpanahi/openmed デバイス上で完結して動作するヘルスケアAIの提供を目的としています。 …”Bluesky · Jun 11, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.maziyarpanahi.openmed: init at 2.5.0”GitHub · Sep 29, 2026
The biggest 5 of 33 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 33
Talked about on GitHub and Bluesky (33 times).
On GitHub · 28
- Sep 29, 2026agent-skills.github.maziyarpanahi.openmed: init at 2.5.0 — sudosubin/agents.nix0 reactions
- Sep 22, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.5.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Sep 8, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.3.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Sep 1, 2026chore(deps): update openmed requirement from <2,>=1.9.1 to >=1.9.1,<3 — seiba-ai/seiba-risk-scanner0 reactions
- Aug 29, 2026[Argus] CVE-2026-47117: OpenMed 1.5.2 미만 버전의 PII 모델 로딩을 통한 원격 코드 실행 — LEEKIYOON-SEC/Argus-DEV0 reactions
23 more on GitHub
- Aug 25, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.2.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Aug 18, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.1.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Aug 4, 2026build(deps): update openmed requirement from >=1.5.2 to >=2.0.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 30, 2026Bump openmed from 0.6.4 to 1.5.2 — Liberate-Labs/openmed_modal_hosting0 reactions
- Jul 21, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.9.1 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 14, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.9.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 14, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.8.1 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jul 11, 2026cron: curadoria 11/07/2026 - DynamiCare, PhysAssistBench, OpenMed, MedAgentGym, AIME 2026 — fabianofilho/awesome-medical-ai0 reactions
- Jul 7, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.7.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 23, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.6.0 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 19, 2026Add affected range to GHSA-m3v4-v5gx-7wf5 (openmed) — github/advisory-database0 reactions · 1 comment
- Jun 13, 2026feat: add openmed template — Phala-Network/phala-cloud0 reactions · 1 comment
- Jun 12, 2026Add OpenMed to healthcare AI section — alvinreal/awesome-opensource-ai0 reactions
- Jun 9, 2026build(deps): update openmed requirement from >=1.5.2 to >=1.5.5 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
- Jun 9, 2026Healthcare Vitals Toolkit — OpenMed Integration Proposal — nvdigitalsolutions/mcp-ai-wpoos0 reactions
- Jun 9, 2026[jules] Port OpenMed quality gates: quality_gates.dart (threshold config) — iberi22/OrionHealth0 reactions · 3 comments
- Jun 9, 2026[jules] Port OpenMed locale validators: i18n_validators.dart (CPF, DNI, CURP) — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Expand PromptScrubber with PiiDetector integration — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Port OpenMed text processor to Dart: text_processor.dart — iberi22/OrionHealth0 reactions · 3 comments
- Jun 8, 2026[jules] Port OpenMed PII detector to Dart: pii_detector.dart (30+ patterns) — iberi22/OrionHealth0 reactions · 2 comments
- Jun 8, 2026[jules] Port OpenMed EntitySpan to Dart: pii_entity.dart — iberi22/OrionHealth0 reactions · 2 comments
- Jun 8, 2026[jules] Port OpenMed labels.py to Dart: pii_labels.dart — iberi22/OrionHealth0 reactions · 2 comments
- May 29, 2026build(deps): update openmed requirement from >=1.4.0 to >=1.5.2 in /healthadvocate — simongonzalezdc/healthadvocate0 reactions · 1 comment
On Bluesky · 5
- Jun 11, 2026医療テキストの解析や個人情報の匿名化を端末内で完結できるヘルスケアAIツールっぽい 機密データを扱う医療関連の開発現場でかなり使えそう yug1224 starred maziyarpanahi/openmed… — @yug1224.com3 likes and reposts
- Jul 10, 2026Local #PII #HIPAA data #anonymizer based on #OpenMed and runs on #Nvidia and Apple #MLX - entirely #offline. #OpenSource Apache 2.0… — @qdrddr.bsky.social2 likes and reposts
- Jun 22, 2026github.com/maziyarpanahi/o... GitHub - maziyarpanahi/openmed: Local-first healthcare AI: clinical NER & HIPAA PII de-identific... — @technews4869.bsky.social1 likes and repost
- Jun 11, 2026今日のGitHubトレンド maziyarpanahi/openmed デバイス上で完結して動作するヘルスケアAIの提供を目的としています。 クラウドにデータを送らずに、臨床テキストからのエンティティ抽出や個人情報の匿名化をローカル環境で実現します。… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 16, 2026Did you have a look to OpenMed ? It gives a similar toolkit unified in a python / Swift API specialised in health use cases.… — @aminesaboni.bsky.social0 likes and reposts · 2 replies
In this repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ask-openmedSkill
- assembling-fhir-bundlesSkill
- auditing-deidentification-runsSkill
- auditing-deid-leakageSkill
- auditing-part11-trailsSkill
- auditing-safe-harbor-checklistSkill
- auditing-subgroup-fairnessSkill
- authoring-model-cardsSkill
- batch-processing-clinical-textSkill
- benchmarking-clinical-nerSkill
- benchmark-pii-recallSkill
- bridging-presidio-and-spacySkill
- building-gold-corpusSkill
- building-patient-timelinesSkill
- building-with-openmedSkill
- checking-hipaa-complianceSkill
- choosing-openmed-modelsSkill
- coding-hcc-risk-adjustmentSkill
- coding-icd10Skill
- computing-ecqmsSkill
- configuring-privacy-policiesSkill
- defining-cohort-phenotypesSkill
- deidentify-a-datasetSkill
- deidentifying-clinical-textSkill
- deidentifying-multilingual-textSkill
- deploying-openmed-mcpSkill
- detecting-pv-signalsSkill
- enforcing-nophi-loggingSkill
- etl-to-omop-cdmSkill
- evaluating-with-leakage-gatesSkill
- exporting-bulk-fhirSkill
- exporting-to-fhirSkill
- extract-clinical-entities-to-fhirSkill
- extracting-clinical-entitiesSkill
- extracting-dicom-metadataSkill
- extracting-lab-tablesSkill
- extracting-pii-entitiesSkill
- extracting-sdohSkill
- fetching-fhir-resourcesSkill
- gating-deid-leakageSkill
- generating-synthea-dataSkill
- generating-synthetic-surrogatesSkill
- ingesting-clinical-documentsSkill
- linking-umls-conceptsSkill
- loading-openmed-modelsSkill
- mapping-loincSkill
- mapping-to-snomedSkill
- mining-pubmed-literatureSkill
- normalizing-rxnormSkill
- parsing-ccda-documentsSkill
- parsing-hl7v2-messagesSkill
- parsing-lab-valuesSkill
- parsing-trial-eligibilitySkill
- pick-a-pii-modelSkill
- pseudonymizing-for-gdprSkill
- querying-openfda-labelsSkill
- querying-terminology-serviceSkill
- reconciling-problem-listsSkill
- reidentifying-textSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 123
All emit per-variant gene, consequence, and (with the right database) frequency and clinical fields.
- Distinctive: line 142
Use those to (a) select which VCF variants matter and (b) attach phenotype context to each annotation.
- Distinctive: line 147
Keep genomic + clinical data local.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Annotating variants & normalizing HGVS
Turn raw genomic variants — VCF rows, rsIDs, or HGVS strings — into annotated, consequence-predicted records, and link them to the clinical context OpenMed extracts from text (genes, variants, oncology findings, phenotype). The workhorse for a quick, no-install annotation is the Ensembl VEP REST API; for scale, run VEP, SnpEff, or ANNOVAR offline.
These annotators are free and license-permissive. Restricted clinical interpretation databases (e.g. licensed HGMD) are user-supplied — this skill sticks to open resources (Ensembl, gnomAD, ClinVar).
When to use
- You have a VCF / HGVS / rsID and need consequence predictions (missense, stop-gain, splice), affected transcripts, and protein change.
- You need to normalize HGVS to genomic coordinates (and back) on a known build (GRCh38 by default; GRCh37 via the dedicated endpoint).
- You want gnomAD population allele frequencies to flag common vs rare.
- You are pairing molecular findings with the phenotype/oncology context that OpenMed pulls from notes or literature.
Quick start (real Ensembl VEP REST call)
Base URL: https://rest.ensembl.org (GRCh38). For GRCh37 use
https://grch37.rest.ensembl.org. Default species is human/homo_sapiens.
import requests
REST = "https://rest.ensembl.org"
HEADERS = {"Content-Type": "application/json", "Accept": "application/json"}
def vep_hgvs(hgvs: str) -> list[dict]:
"""Annotate a single HGVS variant (GET)."""
r = requests.get(f"{REST}/vep/human/hgvs/{hgvs}", headers=HEADERS, timeout=30)
r.raise_for_status()
return r.json()
# Transcript-level HGVS (coding) — note the build-aware default transcript set
ann = vep_hgvs("ENST00000269305.9:c.215C>G") # TP53 example
v = ann[0]
print(v["most_severe_consequence"]) # e.g. "missense_variant"
for tc in v.get("transcript_consequences", []):
print(tc["gene_symbol"], tc.get("hgvsp"), tc.get("sift_prediction"),
tc.get("polyphen_prediction"))Batch many variants with the POST endpoint (region "CHROM POS ID REF ALT . . ." format, up to 200 per request):
def vep_region_batch(variants: list[str]) -> list[dict]:
body = {"variants": variants} # ["17 7676154 . C G . . .", ...] 1-based
r = requests.post(f"{REST}/vep/human/region", headers=HEADERS,
json=body, timeout=60)
r.raise_for_status()
return r.json()Equivalent cURL:
curl 'https://rest.ensembl.org/vep/human/hgvs/ENST00000269305.9:c.215C>G' \
-H 'Content-Type:application/json'Response highlights per variant: most_severe_consequence,
transcript_consequences[] (gene_symbol, hgvsc, hgvsp, sift_prediction,
polyphen_prediction, impact), and colocated_variants[] (rsIDs and
population frequencies). Request gnomAD frequencies and ClinVar via VEP options /
plugins.
Population frequencies via gnomAD (GraphQL)
For authoritative allele frequencies, query the gnomAD GraphQL API at
https://gnomad.broadinstitute.org/api. Use variant IDs in
chrom-pos-ref-alt form. Frequencies are derived from ac/an (allele count /
number) — request those, not a non-existent af on subpopulations.
GNOMAD = "https://gnomad.broadinstitute.org/api"
QUERY = """
query Variant($id: String!, $ds: DatasetId!) {
variant(variantId: $id, dataset: $ds) {
variant_id rsids
genome { ac an af homozygote_count }
exome { ac an af homozygote_count }
}
}"""
def gnomad_freq(variant_id: str, dataset: str = "gnomad_r4") -> dict:
r = requests.post(GNOMAD, json={"query": QUERY,
"variables": {"id": variant_id, "ds": dataset}}, timeout=30)
r.raise_for_status()
return r.json()["data"]["variant"]
# gnomad_freq("17-7676154-C-G") -> ac/an/af for exome and genomeOffline annotation at scale
For whole-VCF jobs, run a local annotator instead of per-variant REST calls:
| Tool | Strengths | Notes |
| Ensembl VEP (offline) | richest, plugin ecosystem (gnomAD, CADD, SpliceAI), HGVS | needs cache download per build |
| SnpEff | fast, self-contained genome databases | great for bulk consequence calling |
| ANNOVAR | many annotation databases | registration required; license terms apply |
All emit per-variant gene, consequence, and (with the right database) frequency and clinical fields. Keep the reference build (GRCh38) consistent end to end.
Workflow
- Normalize input to a canonical form: left-align/trim VCF alleles; for HGVS, confirm the reference transcript and build.
- Annotate — REST (
/vep/human/hgvsor/vep/human/region) for a handful, offline VEP/SnpEff for a VCF. - Attach frequencies from gnomAD; flag common variants (e.g. AF > 1%).
- Filter/prioritize by
most_severe_consequence, impact, and rarity. - Join to clinical context from OpenMed (gene/variant mentions, oncology, phenotype) to assemble an interpretable record.
Hand-off to / from OpenMed
- OpenMed → variant context.
openmed.analyze_text(report, model_name=<a Genomics or Oncology model>)extracts gene symbols, variant mentions (e.g. "EGFR L858R"), and tumor/oncology findings from pathology or molecular reports. Use those to (a) select which VCF variants matter and (b) attach phenotype context to each annotation. - Variant → OpenMed. Free-text variant descriptions in reports can be normalized to HGVS here, then the surrounding clinical narrative is structured by OpenMed — linking genotype to extracted phenotype/diagnosis.
- Keep genomic + clinical data local. The REST/GraphQL calls carry only the
variant coordinates (public allele data), never patient identifiers — and
any narrative is de-identified with
openmed.deidentifyfirst.
Edge cases & gotchas
- Build mismatch is the #1 error. GRCh38 coordinates against a GRCh37 endpoint
(or cache) give wrong genes. Use
grch37.rest.ensembl.orgonly for GRCh37 data; default REST is GRCh38. - Transcript choice changes the HGVS.
c./p.notation depends on the reference transcript (MANE Select vs others). Pin the transcript explicitly. - Normalize before annotating. Un-left-aligned indels and multi-allelic VCF
rows produce inconsistent annotations — decompose and normalize first
(e.g.
bcftools norm). - REST is rate-limited. ~15 req/s and 200 variants/POST on the Ensembl REST
server; switch to offline VEP for large VCFs. Honor
Retry-Afteron 429. - gnomAD subpopulation fields. Query
ac/an(and compute AF) for subpopulations; some schema paths rejectafdirectly — track the current schema version, which changes between gnomAD releases. - No clinical interpretation here. Consequence ≠ pathogenicity. Pathogenicity classification (ACMG/AMP) uses curated evidence and licensed databases the user supplies; this skill produces annotations, not diagnoses.
Standards & references
- VCF specification — https://samtools.github.io/hts-specs/VCFv4.4.pdf
- HGVS nomenclature — https://hgvs-nomenclature.org/
- Ensembl VEP REST (HGVS GET) — https://rest.ensembl.org/documentation/info/vep_hgvs_get
- Ensembl VEP REST (region POST) — https://rest.ensembl.org/documentation/info/vep_region_post
- Ensembl VEP (offline) — https://www.ensembl.org/info/docs/tools/vep/index.html
- SnpEff — https://pcingola.github.io/SnpEff/
- gnomAD API — https://gnomad.broadinstitute.org/api
- ClinVar — https://www.ncbi.nlm.nih.gov/clinvar/
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

