Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Queries NCBI dbSNP by rsID, gene, or region for alleles, MAF, variant class, and cross-database IDs.
45% 95%+50 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
3 of 3 safety checks passed
Not used yet
NCBI dbSNP is the primary public repository for short human genetic variants, cataloguing over 1 billion SNPs, indels, and MNVs with allele frequencies, functional annotations, and cross-references to ClinVar, gnomAD, and 1000 Genomes. Variants are identified by stable rsIDs (reference SNP cluster IDs). Access is free via two APIs: the legacy NCBI E-utilities and the newer NCBI Variation Services REST API, which returns structured JSON.
clinvar-database; dbSNP provides IDs and frequency but not curated clinical significancegnomad-database; dbSNP MAF is a single aggregate frequencyrequests, pandas, matplotlib, xml.etree.ElementTree (stdlib)rs80357906), gene symbols, or chromosomal coordinatesemail parameter)&api_key=YOUR_KEY to all requestspip install requests pandas matplotlib
# xml.etree.ElementTree is part of Python stdlib — no additional install needed
import requests
import json
EMAIL = "[email protected]" # required by NCBI policy
BASE_EUTILS = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"
BASE_VARIATION = "https://api.ncbi.nlm.nih.gov/variation/v0"
def fetch_snp_by_rsid(rsid: str) -> dict:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.