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=Truemeans 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rpg_conv-0.2.0.tar.gz | 3.3 MB | Without provenance | Details for rpg_conv-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rpg_conv-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for rpg_conv-0.2.0-py3-none-any.whl |
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
|
Security for rpg-conv 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.