[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [gnomAD allele frequencies](https://spiral.ai/integrations/muse-code/gnomad-allele-frequencies)

# How to Use gnomAD allele frequencies in Muse Code

Returns population allele frequencies, allele counts, and homozygote counts for a specific DNA change, including genetic ancestry breakdowns. Use it to examine one candidate site's population evidence before reviewing a whole gene.

|  |  |
| --- | --- |
| Model | gnomAD allele frequencies |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with gnomAD allele frequencies in Muse Code

- Use gnomAD allele frequencies for GRCh38 site 19-44908684-T-C and add its overall and genetic ancestry counts to the project's example report.
- Use gnomAD allele frequencies for GRCh38 site 1-55039909-TC-T and create a project example that displays exome and genome counts separately.
- Use gnomAD allele frequencies to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from gnomAD allele frequencies and tell me what changed since last week.
- Check gnomAD allele frequencies and summarize what you find in three bullet points.

## How to set up gnomAD allele frequencies in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run gnomAD allele frequencies**: One request; the result comes back by polling or a webhook.

```bash
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": "gnomad-broadinstitute-org/variants/frequency",
    "input": {
      "variant": "<variant>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds gnomAD allele frequencies on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## gnomAD allele frequencies tools and prices

- [Population allele frequencies and gene constraint (Broad Institute) · Frequency](https://spiral.ai/tools/alexandria/gnomad-broadinstitute-org/variants/frequency) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| by_sex |  | — | Add XX and XY counts for every genetic ancestry group and overall. |
| dataset | gnomad_r4, gnomad_r3, gnomad_r2_1 | — | gnomad_r4 (v4.1, 730,947 exomes and 76,215 genomes, GRCh38; the default), gnomad_r3 (v3.1.2, 76,156 genomes, GRCh38) or gnomad_r2_1 (v2.1.1, 125,748 exomes and 15,708 genomes, GRCh37). Defaults to the dataset of a pasted browser URL, else gnomad_r4. |

## What can you do with gnomAD allele frequencies in Muse Code?

Build a gene review table that joins gnomAD population counts to the project's research candidates. Keep genetic ancestry breakdowns and exome versus genome evidence available for inspection alongside each selected allele.

### Build a rare-allele research shortlist

Survey CFTR for rare coding changes, then inspect individual sites for population frequencies and homozygote counts before selecting candidates for further research.

### Review predicted loss-of-function evidence

Find predicted loss-of-function alleles in PCSK9 and examine their population counts. Keep the confidence annotations beside the frequency evidence when preparing a target research brief.

### Check ancestry-specific enrichment

Start with observed changes in HBB, then compare genetic ancestry frequencies for selected alleles. Identify cases where an overall frequency hides a much higher frequency in one ancestry group.

### Prepare a functional assay panel

Find missense alleles in BRCA1 within a chosen frequency range, then inspect population and homozygote counts for the proposed assay candidates.

### Refresh a gene evidence report

Rerun a SCN2A search after a gnomAD release change and revisit selected allele frequencies. Report changes in the research shortlist separately from changes in population counts.

### Investigate conflicting population evidence

Review a gene's observed alleles, then inspect selected sites for differences between exome and genome frequencies. Highlight discordance before combining the evidence in a research report.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## gnomAD allele frequencies in other agents

- [Amp](https://spiral.ai/integrations/amp/gnomad-allele-frequencies)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gnomad-allele-frequencies)
- [Claude](https://spiral.ai/integrations/claude-desktop/gnomad-allele-frequencies)
- [Claude Code](https://spiral.ai/integrations/claude-code/gnomad-allele-frequencies)
- [Cline](https://spiral.ai/integrations/cline/gnomad-allele-frequencies)
- [Codex](https://spiral.ai/integrations/codex/gnomad-allele-frequencies)
- [Cursor](https://spiral.ai/integrations/cursor/gnomad-allele-frequencies)
- [Devin](https://spiral.ai/integrations/devin/gnomad-allele-frequencies)
- [dots](https://spiral.ai/integrations/dots/gnomad-allele-frequencies)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gnomad-allele-frequencies)
- [Gemini](https://spiral.ai/integrations/gemini/gnomad-allele-frequencies)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gnomad-allele-frequencies)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gnomad-allele-frequencies)
- [goose](https://spiral.ai/integrations/goose/gnomad-allele-frequencies)
- [Grok](https://spiral.ai/integrations/grok/gnomad-allele-frequencies)
- [Grok Build](https://spiral.ai/integrations/grok-build/gnomad-allele-frequencies)
- [Hermes](https://spiral.ai/integrations/hermes/gnomad-allele-frequencies)
- [Instinct](https://spiral.ai/integrations/instinct/gnomad-allele-frequencies)
- [Manus](https://spiral.ai/integrations/manus/gnomad-allele-frequencies)
- [Muse](https://spiral.ai/integrations/muse/gnomad-allele-frequencies)
- [n8n](https://spiral.ai/integrations/n8n/gnomad-allele-frequencies)
- [Notion](https://spiral.ai/integrations/notion/gnomad-allele-frequencies)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gnomad-allele-frequencies)
- [opencode](https://spiral.ai/integrations/opencode/gnomad-allele-frequencies)
- [Perplexity](https://spiral.ai/integrations/perplexity/gnomad-allele-frequencies)
- [Raycast](https://spiral.ai/integrations/raycast/gnomad-allele-frequencies)
- [VS Code](https://spiral.ai/integrations/vscode/gnomad-allele-frequencies)
- [Windsurf](https://spiral.ai/integrations/windsurf/gnomad-allele-frequencies)
- [Zapier](https://spiral.ai/integrations/zapier/gnomad-allele-frequencies)

## More Muse Code guides

- [dbSNP population allele frequencies](https://spiral.ai/integrations/muse-code/dbsnp-population-allele-frequencies)
- [gnomAD gene constraint](https://spiral.ai/integrations/muse-code/gnomad-gene-constraint)
- [dbSNP SNP details](https://spiral.ai/integrations/muse-code/dbsnp-snp-details)
- [gnomAD gene variation search](https://spiral.ai/integrations/muse-code/gnomad-gene-variation-search)
- [UniProt protein search](https://spiral.ai/integrations/muse-code/uniprot-protein-search)
- [851 Labs Background Remover](https://spiral.ai/integrations/muse-code/851-labs-background-remover)

## Questions about gnomAD allele frequencies in Muse Code

**Can Muse Code use gnomAD allele frequencies?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run gnomAD allele frequencies like any built-in tool.

**How much does gnomAD allele frequencies cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use gnomAD allele frequencies in Muse Code?**

No. Spiral runs gnomAD 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 gnomAD allele frequencies in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while gnomAD allele frequencies runs?**

gnomAD allele frequencies runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**How large is the gnomAD reference?**

The v4 reference contains 730,947 exomes and 76,215 genomes on GRCh38. These are aggregate research data from contributing sequencing projects.

**Are the ancestry frequencies representative of everyone?**

gnomAD reports frequencies by inferred genetic ancestry group, but representation is uneven. The proportion of European ancestry samples is higher in v4 than in earlier releases, partly because of UK Biobank inclusion.

**Can annotations change between gnomAD releases?**

Yes. In v4.1.1, gnomAD changed LOFTEE's GERP distance threshold to 0.0 and reannotated predicted loss-of-function confidence, so a release change can alter a shortlist even without a new population count.

**Does a missing count mean an allele was never observed?**

A No data flag means no defined genotypes were available for that sequencing data type. AC0 has a different meaning: the allele count became zero after low-quality genotypes were removed.

**Why can exome and genome frequencies disagree?**

gnomAD explicitly tests for frequency differences between those datasets. Its v4.1 discordance warning uses a contingency-table or CMH test p-value below 0.0001.

