Skip to main content

Robust protein marker to gene symbol resolution backed by SQLite.

Project description

rpg_conv

rpg_conv resolves protein marker aliases (for example ki--67, SMA, CD57) to canonical gene symbols using a local SQLite database populated from a bundled Ensembl reference table.

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("ki--67"))  # MKI67
print(resolver.resolve_one("ki67"))    # MKI67
print(resolver.resolve_one("SMA"))     # ACTA2
print(resolver.resolve_one("CD57"))    # B3GAT1

CLI

rpg-conv "ki--67"

Data model

The SQLite database stores:

  • canonical gene symbols
  • aliases/synonyms
  • normalized alias keys used for robust lookup
  • bundled Ensembl reference rows loaded on first initialization
  • a tiny ground-truth override table for deterministic aliases (KI67, SMA, CD57, PDCD1)

Optional Ensembl bootstrap

If you want to enrich synonyms from Ensembl:

pip install "rpg_conv[ensembl]"

Then use rpg_conv.ensembl_import.bootstrap_from_ensembl(...) in your own workflow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpg_conv-0.1.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rpg_conv-0.1.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file rpg_conv-0.1.2.tar.gz.

File metadata

  • Download URL: rpg_conv-0.1.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for rpg_conv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0c2694ce3fac33babded6fa585b40ef39d3f6bd6f4de04a7a93d223e506f0f4e
MD5 6646df1d54c3d444cdd6192733b4d52b
BLAKE2b-256 0d0f2f1783dd7210432efeadfd706f2141441caf69f0d96b200406bcecfb5470

See more details on using hashes here.

File details

Details for the file rpg_conv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: rpg_conv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.4

File hashes

Hashes for rpg_conv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 975264534212d7ac8466013521281862531c936458f0a34c0bf9689cbe13db79
MD5 2243b35b557e03f010928bf3ff4114e7
BLAKE2b-256 3e9703c9148d82948460934b613497baf55f9c7f896daae8c8f9c80d1eae1093

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page