lookup_cpic
Look up CPIC gene-drug reference tables (global reference data).
CPIC (Clinical Pharmacogenetics Implementation Consortium) publishes public gene-drug guidance tables and genotype/phenotype mappings. This tool mirrors reference knowledge — it is not specific to any sample and does not make prescribing recommendations. To connect it to authorized data, first retrieve the relevant genotype with query_variants, then look up the matching gene/drug record here for educational, research, or wellness context.
Parameters
| Parameter | Description |
|---|---|
diplotypestring | null optional | Diplotype filter (e.g. "*1/*2"). Valid for "diplotypes". |
drugstring | null optional | Drug name filter. Valid for "recommendations" and "pairs". |
genestring | null optional | Gene symbol filter (e.g. "CYP2C19"). Valid for every kind. |
kindstring optional, default "recommendations" | Which CPIC table to read. "recommendations" (default) — public gene/drug guidance tables (filter by gene and/or drug). "diplotypes" — diplotype → phenotype / activity-score mappings (filter by gene and/or diplotype). "pairs" — curated gene–drug pairs with their CPIC evidence level (filter by gene, drug, and/or level). One of: |
levelstring | null optional | CPIC evidence level filter (e.g. "A"). Valid for "pairs". |
limitinteger optional, default 20 | Page size (default 20, capped at 50). |
offsetinteger optional, default 0 | Page offset for paging through total_count. |
orderstring | null optional | Sort direction, "asc" or "desc" (default "desc"). |
sortstring | null optional | Column to sort by (free string; the sortable columns differ per kind, e.g. "gene", "drug", "level"). Paired with order. |
Response
| Field | Description |
|---|---|
itemsobject[] required | |
limitinteger required | |
offsetinteger required | |
total_countinteger required | Matches across all pages, not only this one. |