stringdb_alias
A python package for working with string-db.org aliases (gene and protein ID mapping).
This package is specifically for working offline using downloaded files. For accessing the STRINGdb API instead, see for example the stringdb package.
Usage
Mapping HGNC symbols
First, download the aliases and info files from string-db.org:
$ wget https://stringdb-static.org/download/protein.info.v11.5/9606.protein.info.v11.5.txt.gz $ wget https://stringdb-static.org/download/protein.aliases.v11.5/9606.protein.aliases.v11.5.txt.gz
Then, initialize our mapper object with the downloaded files, and map lists of IDs
from stringdb_alias import HGNCMapper
mapper = HGNCMapper('9606.protein.info.v11.5.txt.gz', '9606.protein.aliases.v11.5.txt.gz')
print(mapper.get_string_ids(['ADCK2', 'TOMM7', 'PRODH']))
The mapper always returns a pandas Series. This is convenient for directly mapping a column in a DataFrame. Moreover, if the input list is a pandas Series, the index is preserved in the output.
Metadata
Release files for stringdb-alias 1.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 |
|---|---|---|---|---|
| stringdb_alias-1.0.tar.gz | 3.4 kB | Without provenance | Details for stringdb_alias-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stringdb_alias-1.0-py3-none-any.whl | Python 3 | none | any | Details for stringdb_alias-1.0-py3-none-any.whl |
Total release size: 7.5 kB
Release files / stringdb_alias-1.0.tar.gz
| Download URL | stringdb_alias-1.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da517960b272a743334638de879ac83b5a94e2ed485d23d416dd429054d7559a
|
|
BLAKE2b-256 checksum How to use checksums |
d5303b0767543f29d2e6db4950e4e1157ff758063751ddbb07dec8b463008536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|
Release files / stringdb_alias-1.0-py3-none-any.whl
| Download URL | stringdb_alias-1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de1a65451e8150c510e8cfb27c4e8808711d0755b46a4420625bd9f3ea09dc44
|
|
BLAKE2b-256 checksum How to use checksums |
5b8c6759fedda0edaa6a3cabdc16bec09617a44818541f5ca5a4d813aee5a345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|
Security for stringdb-alias 1.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.