Dbsnp Database
Use when you want to look up, map, and search for short genetic variants (SNPs, indels)...
Install
npx skills add google-deepmind/science-skills --skill dbsnp-database -g -a claude-code -y- Repository
- google-deepmind/science-skills3.4k
- Category
- Data and ML
- Updated
- 12d ago
- License
- Apache-2.0
- Context cost
- Mediumabout 3,000 tokens
- Runs scripts
- Yes, review before use
What it does
Use when you want to look up, map, and search for short genetic variants (SNPs, indels) in NCBI's dbSNP database. Resolves between rsIDs, genomic coordinates in VCF format, and HGVS strings. For an rsID, returns variant type, gene associations, clinical significance, allele frequencies, and genomic coordinates (GRCh38).
dbSNP Database Integration
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/dbsnp_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://www.ncbi.nlm.nih.gov/snp/, then (2) create the file recording the notification text and timestamp.
.envfile: Make sure the.envfile exists in your home directory. Create one if it does not exist.NCBI_API_KEY(optional): Raises the NCBI rate limit from 3 to 10 requests/second. The skill works without it, but a key is recommended if the user plans many queries or encounters a 429 error. You can register for a key for free at https://www.ncbi.nlm.nih.gov/account/settings/. You MUST use the safe credentials protocol in thecredentialsskill to check for and request this key if this skill looks relevant to the user's request.
Core Rules
- Use the Wrapper: ALWAYS execute the provided wrapper script
scripts/dbsnp_cli.pyto query the database rather than constructing custom HTTP or curl requests. The script automatically handles rate limiting, retries, and JSON parsing. - Command Choice: Do NOT use
search-regionto find the rsID of a specific variant; useresolve-variantinstead. - Output Size: Avoid using
--fullonget-variantunless specifically needed, as raw payloads can exceed 1 MB. - Shell Safety: Always wrap HGVS strings in single quotes to prevent shell expansion errors.
- Notification: If this skill is used, ensure this is mentioned in the output.
When to Use
Use this skill when you need to:
