[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [NCBI Gene orthologs](https://spiral.ai/integrations/muse-code/ncbi-gene-orthologs)

# How to Use NCBI Gene orthologs in Muse Code

Returns NCBI-calculated counterparts of a gene in other species. Use it to connect a human research target to genes in model organisms or build a comparison across species.

|  |  |
| --- | --- |
| Model | NCBI Gene orthologs |
| 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 NCBI Gene orthologs in Muse Code

- Use NCBI Gene orthologs for human CFTR, restricted to mouse and rat, and write the returned gene identities to a TSV in this project.
- Use NCBI Gene orthologs for human TP53 in mouse and zebrafish, then compare the returned GeneIDs with our species mapping file.
- Use NCBI Gene orthologs to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NCBI Gene orthologs and tell me what changed since last week.
- Check NCBI Gene orthologs and summarize what you find in three bullet points.

## How to set up NCBI Gene orthologs 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 NCBI Gene orthologs**: 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": "gene-ncbi-nlm-nih-gov/genes/orthologs",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds NCBI Gene orthologs on Spiral, shows the price and runs it.

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

## NCBI Gene orthologs tools and prices

- [NCBI Gene · Orthologs](https://spiral.ai/tools/alexandria/gene-ncbi-nlm-nih-gov/genes/orthologs) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | NCBI Gene page URL, e.g. `https://www.ncbi.nlm.nih.gov/gene/7157` (also `/gene/?term=7157` and `/datasets/gene/7157/`). |
| taxa |  | — | Only orthologs in these organisms: NCBI taxonomy IDs or names at any rank, e.g. `["mouse", "zebrafish"]`, `["10090"]`, `["rodents"]`. |
| limit | 1 to 50 | 20 | Orthologs per page. |
| offset | 0 to 100000 | 0 | Zero-based index of the first ortholog; pass `next_offset` for the next page. |
| symbol |  | — | Official gene symbol or alias, case-insensitive, e.g. `TP53`, `p53`, `HER2`, `Trp53`. Looked up in `organism`. |
| gene_id |  | — | NCBI GeneID, e.g. `7157` or `GeneID:7157`. |

## What can you do with NCBI Gene orthologs in Muse Code?

Add NCBI GeneIDs, descriptions and species mappings to a research project's annotation tables. A coding agent can use gene records and ortholog results to check joins and prepare comparisons across organisms.

### Prepare a model organism shortlist

Find candidate genes in a study species, inspect their NCBI descriptions, and retrieve counterparts in mouse, rat or zebrafish to prepare a comparison for experimental planning.

### Build a comparative gene reference

Assemble an organism-specific gene list, add summaries and genomic locations, and connect the entries to NCBI-calculated counterparts in selected species.

### Check a cross-species analysis

Review candidate records from each organism, verify individual gene identities, and compare the proposed species mappings with NCBI's ortholog relationships.

### Maintain a research gene catalog

Refresh organism-specific discovery lists, compare saved gene descriptions with current records, and flag changes to the ortholog links used by a research catalog.

### Prepare a literature briefing

Retrieve a known gene's summary and linked literature, then identify its counterparts in the model organisms discussed in a research meeting.

### Create a comparative genetics exercise

Select genes from an organism-specific result list and build a worksheet comparing names, descriptions, locations and ortholog relationships across species.

## Overview

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

## NCBI Gene orthologs in other agents

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

## More Muse Code guides

- [NCBI Gene details](https://spiral.ai/integrations/muse-code/ncbi-gene-details)
- [NCBI Gene search results](https://spiral.ai/integrations/muse-code/ncbi-gene-search-results)
- [NCBI GEO study search](https://spiral.ai/integrations/muse-code/ncbi-geo-study-search)
- [NEVO food groups](https://spiral.ai/integrations/muse-code/nevo-food-groups)
- [NCBI GEO study details](https://spiral.ai/integrations/muse-code/ncbi-geo-study-details)
- [NEVO food nutrient comparison](https://spiral.ai/integrations/muse-code/nevo-food-nutrient-comparison)

## Questions about NCBI Gene orthologs in Muse Code

**Can Muse Code use NCBI Gene orthologs?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run NCBI Gene orthologs like any built-in tool.

**How much does NCBI Gene orthologs 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 NCBI Gene orthologs in Muse Code?**

No. Spiral runs NCBI Gene orthologs on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NCBI Gene orthologs in Muse Code?**

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

**Does Muse Code wait while NCBI Gene orthologs runs?**

NCBI Gene orthologs runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Where do NCBI Gene records come from?**

NCBI Gene is primarily built from gene models on annotated RefSeq genomes. Its coverage therefore reflects the genomes and annotations represented in that collection.

**How fresh is NCBI Gene?**

Gene and RefSeq records are updated daily when new information arrives from external sources, including model organism databases. An individual record can remain unchanged between those incoming updates.

**Why can a gene record exist but be missing from search?**

A newly public record can be accessible by GeneID before Entrez indexing finishes. NCBI says this discrepancy should last no more than 24 hours.

**Can the same GeneID refer to genes in different species?**

No. GeneIDs are unique across taxa, so genes in different species have distinct identifiers even when their symbols resemble each other.

**Does every gene have a reference assembly location?**

No. NCBI's tabular display omits the reference assembly location when a gene is not annotated on that assembly.

