mygene
Python Client for MyGene.Info services.
Decision gist · record as of 2026-08-14
Yes, if you need to query gene annotations and can tolerate dormant maintenance. The package is stable and has low install friction, but verify that the remote MyGene.Info API remains compatible with your use case. For active development, consider using biothings-client directly, which mygene wraps.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency.
- Maintenance is dormant—the latest release was in April 2021—but the repository remains active with recent commits and the package is marked Production/Stable.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing use in both open-source and proprietary projects with minimal restrictions.
last release 2021-04-05 (1957 days) · last repo commit 2025-01-14 · 99 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,468,965 downloads/mo, #3,871 on PyPI
Alternatives
Verify before relying
pip install mygene
import mygene
mg = mygene.MyGeneInfo()
result = mg.getgene(1017, fields='name,symbol')
print(result)- Whether the package continues to work reliably against the current MyGene.Info API despite dormant maintenance status.
- Current compatibility with Python versions beyond 3.9, given classifiers only list up to 3.9 and no recent releases.
What it is and what it does
Mygene is a thin Python wrapper around the MyGene.Info REST web service, which provides gene annotation data. Since v3.1.0, it has been built on top of biothings-client, a universal client for BioThings APIs. The package lets you query gene information by ID (Entrez, Ensembl, etc.), retrieve specific fields, and search across multiple species. Results can be returned as dictionaries or as pandas DataFrames.
The package is designed for bioinformatics workflows where you need to look up or cross-reference gene identifiers and their associated metadata. It handles both single-gene queries and batch operations, making it suitable for annotation pipelines and exploratory analysis. The underlying REST API is remote, so network access is required.
Use it for
- Map gene IDs between different identifier systems (Entrez, Ensembl, gene symbol) for annotation pipelines.
- Retrieve gene metadata such as names, RefSeq accessions, and protein sequences for a list of gene identifiers.
- Search for genes by symbol or name across multiple species to identify orthologs or related genes.
- Export gene annotation results as a pandas DataFrame for downstream analysis or reporting.
- Integrate gene data lookup into bioinformatics workflows without maintaining a local gene database.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to query gene annotations and can tolerate dormant maintenance.
The package is stable and has low install friction, but verify that the remote MyGene.Info API remains compatible with your use case. For active development, consider using biothings-client directly, which mygene wraps.
Install
mygene on PyPI
Before you install
Low install friction with a single runtime dependency. Maintenance is dormant—the latest release was in April 2021—but the repository remains active with recent commits and the package is marked Production/Stable.
License in practice
BSD license is permissive, allowing use in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install mygene
import mygene
mg = mygene.MyGeneInfo()
result = mg.getgene(1017, fields='name,symbol')
print(result)
Verify before relying
- Whether the package continues to work reliably against the current MyGene.Info API despite dormant maintenance status.
- Current compatibility with Python versions beyond 3.9, given classifiers only list up to 3.9 and no recent releases.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagebiothings-client |
| Maintenance | Dormant 1,957 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,468,965 / month, #3,871 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: BSD LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Bio-InformaticsTopic :: Utilities |
Evidence: mygene-3.2.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gene annotation lookup python”
- mygeneMygene is a Python wrapper for the MyGene.Info REST API that…
- gprofiler-officialPython interface to g:Profiler toolkit for functional enrichment…
- pyensemblPyEnsembl provides a Python interface to query Ensembl reference…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also biothings-client · gprofiler-official · pyensembl · gtfparse · bio · biotite · refgenie · bionty · gseapy · logomaker