Skip to content
Back to skills

Ensembl Gene Lookup

ASecurity

Use this skill to resolve a gene symbol to Ensembl IDs and fetch a canonical Ensembl gene record. Do not use it for full transcript annotation pipelines or offline work.

  • 38 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
ai-agentspythonapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill ensembl-gene-lookup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ensembl Gene Lookup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ensembl Gene Lookup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-ensembl-gene-lookup/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-ensembl-gene-lookup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ensembl-gene-lookup
description: Use this skill to resolve a gene symbol to Ensembl IDs and fetch a canonical Ensembl gene record. Do not use it for full transcript annotation pipelines or offline work.
---

## Purpose
Resolve a gene symbol through Ensembl REST and return the corresponding gene lookup payload.

## When to use
- You need a quick official Ensembl gene identifier lookup.
- You want lightweight gene metadata before a larger genomics workflow.

## When not to use
- You need transcript-level or large-batch annotation.
- You need local-only execution.

## Inputs
- Gene symbol
- Optional species and output path

## Outputs
- JSON payload containing the xref candidates and the selected lookup record

## Requirements
- Python 3.13+
- Network access to `rest.ensembl.org`
- Example asset fallback exists for the curated `BRCA1` and `BRCA2` examples if the live API is temporarily unavailable.

## Procedure
1. Run `python3 skills/genomics/ensembl-gene-lookup/scripts/lookup_gene.py --symbol BRCA1 --out skills/genomics/ensembl-gene-lookup/assets/brca1_lookup.json`.
2. Inspect `xrefs` to confirm the chosen gene ID.
3. Use the `lookup` block for coordinates and display name.

## Validation
- Command exits successfully.
- At least one xref is returned for a known symbol.
- Lookup block includes `id`, `display_name`, and coordinates.

## Failure modes and fixes
- No hits: confirm species and capitalization.
- Multiple matches: filter by `type == gene` and inspect the candidates.
- Official API timeout: rerun once; the curated BRCA example assets can still support deterministic example execution.

## Safety and limits
- Metadata lookup only.
- Large-scale annotation should use more specialized batch tooling.

## Examples
- `python3 .../lookup_gene.py --symbol TP53 --species homo_sapiens`

## Provenance
- Ensembl REST API: https://rest.ensembl.org/
- Ensembl lookup documentation: https://rest.ensembl.org/documentation/info/lookup

## Related skills
- `scanpy-qc-starter`

Files in this skill

  • SKILL.md2 KB
  • assets/README.md65 B
  • assets/brca1_lookup.json764 B
  • assets/brca2_lookup.json763 B
  • examples/README.md180 B
  • metadata.yaml727 B
  • refs.md157 B
  • scripts/lookup_gene.py4.8 KB
  • tests/README.md191 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.