Files

66 lines
1.8 KiB
Markdown

---
title: "DisGeNET (Gene-Disease Associations)"
task: ""
lineage_type: import
upstream_source: https://github.com/K-Dense-AI/scientific-agent-skills/blob/9c9bd2e9/skills/database-lookup/references/disgenet.md
upstream_sha: 9c9bd2e9
imported_at: 2026-06-26
prompt_class: prompt
upstream_changes: accepted
author: upstream
validated: false
---
# DisGeNET (Gene-Disease Associations)
## Base URL
```
https://www.disgenet.org/api
```
## Auth
**API key required.** Register at disgenet.org, then authenticate:
```bash
curl -X POST https://www.disgenet.org/api/auth/ \
-d '[email protected]&password=yourpassword'
# Returns: {"token": "abc123..."}
```
Pass as: `Authorization: Bearer <token>`
Load token from `.env` as `DISGENET_API_KEY`.
## Key Endpoints
| Endpoint | Description |
|----------|-------------|
| `/gda/gene/{gene_id}` | Gene-disease associations (NCBI gene ID) |
| `/gda/disease/{disease_id}` | Gene-disease associations (UMLS CUI) |
| `/gda/evidences/gene/{gene_id}` | Evidence-level data |
| `/vda/gene/{gene_id}` | Variant-disease associations for a gene |
| `/vda/variant/{rsid}` | Variant-disease associations (dbSNP rsID) |
## Parameters
- `source` — `CURATED`, `BEFREE`, `ALL`
- `min_score` — GDA score threshold (0-1)
- `min_ei` — evidence index threshold
- `format` — `json` or `tsv`
- `limit`, `offset` — pagination
## Example Calls
```
# Gene-disease for TP53 (gene ID 7157)
/gda/gene/7157?source=CURATED&min_score=0.3&limit=10&format=json
# Disease-gene for Breast Cancer (UMLS CUI C0006142)
/gda/disease/C0006142?limit=10
# Variant-disease for rs1042522
/vda/variant/rs1042522
```
## Rate Limits
Free academic tier: ~few hundred requests/day. Paid tiers available.
## Free alternative
If no API key: use **Open Targets** for disease-gene associations.