ensembl-database

Query Ensembl REST API for genes, sequences, variants, and orthologs across species.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill ensembl-database-bkzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ensembl-database
Source: https://github.com/BKZhao/MIMIC-Papers-Repro-Agent/tree/main/.codex/skills/ensembl-database
Command: npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill ensembl-database-bkzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill enables researchers and developers to programmatically access the Ensembl genome REST API to retrieve gene annotations, sequences, variants, and comparative genomics data across 250+ species, streamlining data collection for genomic analyses.

Core Features & Use Cases

  • Gene information retrieval by symbol or Ensembl ID
  • Sequence retrieval for genomic, transcript, and protein data
  • Variant analysis with VEP and cross-reference data
  • Comparative genomics for orthologs and gene trees across species
  • Genomic region queries and assembly coordinate mapping
  • Supports batch lookups and multiple response formats (JSON, FASTA)

Quick Start

Look up a human BRCA2 gene and fetch its gene information and sequence.

Frequently Asked Questions about ensembl-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve gene sequences from Ensembl using a REST API?

To retrieve Ensembl gene sequences via a REST API, query the endpoint with a gene symbol or Ensembl ID to fetch genomic, transcript, or protein sequence data in formats like FASTA. This approach handles rate limiting and supports batch lookups.

Can I perform VEP variant analysis across multiple species with Ensembl?

Yes, you can perform VEP variant analysis across 250+ species using the Ensembl REST API. It allows you to query variant consequences and cross-reference data programmatically, supporting multiple response formats and batch queries for efficient variation analysis.

What's the best way to find orthologs between species in Ensembl?

The best way to find orthologs across species is querying the Ensembl REST API for comparative genomics data. It retrieves orthology information and gene trees directly, streamlining cross-species comparisons without manual database downloads.

Does the Ensembl REST API support genome assembly coordinate mapping?

Yes, the Ensembl REST API supports genome assembly coordinate mapping, allowing you to translate genomic regions between different assemblies. It handles region-based queries and cross-references seamlessly across the 250+ supported species.

How do I handle rate limiting when querying Ensembl genomic data?

When querying Ensembl genomic data, rate limiting is handled by applying built-in request throttling and error handling logic. This ensures your batch queries and sequence retrievals remain within API limits without triggering connection failures.

Why use a Python script for Ensembl sequence retrieval instead of direct browser downloads?

Using a Python script for Ensembl sequence retrieval enables automated batch lookups, structured JSON parsing, and integrated error handling. It scales genomic data collection far better than manual browser downloads when processing multiple genes or variants.