Skip to main content

rpg_conv

rpg_conv resolves protein marker aliases (for example ki67, SMA, CD57) to canonical gene symbols using a local SQLite database populated from a bundled merged Ensembl reference table (human + mouse aliases together).

Install

pip install rpg_conv

For development:

pip install -e ".[dev]"

Quick Start

from rpg_conv import GeneResolver

resolver = GeneResolver()  # creates/loads a local SQLite DB in ~/.rpg_conv

print(resolver.resolve_one("ki67"))    # MKI67
print(resolver.resolve_one("a-sma", return_top=False)) # contains ACTA2 among merged aliases
print(resolver.resolve_one("CD57", return_top=False))  # contains B3GAT1 among merged aliases
print(resolver.resolve_one("PDCD1"))   # PDCD1

CLI

rpg-conv "ki--67"
rpg-conv "ki--67" --no-only-return-confident
rpg-conv "CD57" --return-ensembl-id
rpg-conv "hox1" --no-return-top --sep "|"
rpg-conv "hox1" --return-df --verbose

Data model

The SQLite database stores one merged alias table with:

  • Ensembl gene ID
  • canonical gene symbols
  • aliases/synonyms
  • normalized alias keys used for robust lookup
  • bundled Ensembl reference rows loaded on first initialization

Matching behavior

  • Direct normalized DB match is tried first.
  • If no direct match, fuzzy search uses rapidfuzz.distance.Levenshtein.
  • only_return_confident=True means only exact or strict fuzzy (distance < confidence_distance_lt) matches are accepted.
  • If only_return_confident=False, worst-case fallback returns the original query string.

Metadata

Release files for rpg-conv 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpg-conv 0.2.0
File Size Uploaded
rpg_conv-0.2.0.tar.gz 3.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpg-conv 0.2.0
File Interpreter ABI Platform
rpg_conv-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 MB

Release files / rpg_conv-0.2.0.tar.gz

Download URL rpg_conv-0.2.0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8c6aa6b903ccec0ca845261ad5242de6d5ee8d4674d9bd04b215f3401cc2ef28
BLAKE2b-256 checksum
How to use checksums
550ee83cd3f9c85accdab731dbea454922075659bf8044b14396ca629b093ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.4

Release files / rpg_conv-0.2.0-py3-none-any.whl

Download URL rpg_conv-0.2.0-py3-none-any.whl
Size 3.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d5e4b22fe18d5926f6e48750245d83fa58d102f39c287544cb29de6a9c329d2e
BLAKE2b-256 checksum
How to use checksums
2645ee089d1b9bc16c414e310029cd330d11d5322e95bf515abb7bbce7beed7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page