How to Use dbSNP population allele frequencies in opencode
Returns ALFA allele counts by population for a public rsID, using aggregated dbGaP study data. Use it to compare how common an allele is across populations without retrieving the full SNP record.
Prompts to try with dbSNP population allele frequencies in opencode
Copy an example into opencode, or ask in your own words.
Use dbSNP population allele frequencies for rs4988235 and write a script that turns the returned population allele counts into a CSV.
Use dbSNP population allele frequencies for rs334 and rs1801133 to create a notebook comparing the returned populations and allele counts.
Use dbSNP population allele frequencies to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from dbSNP population allele frequencies and tell me what changed since last week.
Check dbSNP population allele frequencies and summarize what you find in three bullet points.
How to set up dbSNP population allele frequencies in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run dbSNP population allele frequencies
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "snp-ncbi-nlm-nih-gov/variants/frequency", "input": { "rsid": "<rsid>" } }'
Then paste one of the prompts above: opencode finds dbSNP population allele frequencies on Spiral, shows the price and runs it.
dbSNP population allele frequencies providers and prices
Spiral runs dbSNP population allele frequencies through Alexandria. Open a card for today's price, with every fee included.
What can you do with dbSNP population allele frequencies in opencode?
Build research tables that join public rsIDs to dbSNP alleles and frequency evidence. A coding agent can add those lookups to an annotation script and check its output against NCBI records.
Add frequency context to a research shortlist
Look up public rsIDs from a paper and add the available study or population frequencies to a comparison table.
Screen a public SNP panel by frequency
Apply a research frequency threshold to a supplied list of rsIDs, keeping each allele tied to its reported study or population.
Prepare a genetics teaching exercise
Use public rsIDs such as rs334 and rs4988235 to build exercises comparing alleles and their reported frequencies.
Check a frequency annotation pipeline
Compare a pipeline's frequency output with NCBI records for a fixed set of public rsIDs, checking allele identity and study or population labels.
Review changes between retrieved records
Refresh a public research panel periodically and report changes in its returned allele frequencies or counts.
Prepare a manuscript frequency table
Create an allele frequency table for specified rsIDs, separating results by study or population so readers can compare the evidence.
Compare population allele counts
Compare the same allele across the ALFA populations returned for an rsID, displaying counts alongside population labels.
More on dbSNP population allele frequencies and opencode
Overview
dbSNP population allele frequencies in other agents
Questions about dbSNP population allele frequencies in opencode
Can opencode use dbSNP population allele frequencies?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run dbSNP population allele frequencies like any built-in tool.
How much does dbSNP population allele frequencies cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use dbSNP population allele frequencies in opencode?
No. Spiral runs dbSNP population allele frequencies on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up dbSNP population allele frequencies in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while dbSNP population allele frequencies runs?
dbSNP population allele frequencies runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does dbSNP cover species other than humans?
The current dbSNP resource covers human genetic changes, including single nucleotide changes, microsatellites, and small insertions and deletions. Its scope extends beyond single nucleotide SNPs.
How many populations does ALFA cover?
ALFA assigns sample ancestries to 12 population categories, including European, Hispanic, African, and Asian categories. These are study ancestry categories rather than country-by-country coverage.
How often does dbSNP publish updated records?
NCBI describes new and updated RefSNP records as becoming public with dbSNP builds about once per quarter. That is a publication cadence, not a promise that each rsID changes every quarter.
Does ALFA include every submitted genetic site?
ALFA excludes sites and subjects with call rates below 95%. Its frequency data therefore reflects quality-filtered input rather than every submitted observation.
Can I retrieve an individual's genotype from ALFA?
ALFA provides pooled population frequency data. Individual-level genotypes and associated data require authorized access through dbGaP.
Start using dbSNP population allele frequencies in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


