IDswapper
Convert given gene IDs to various other IDs. (under development, please come back later)
Usage
$ IDswapper --infile test.txt --id-column-index 0 --fetch "25" "5" "10" --outfile append_test.txt
For large files that are gzip compressed
$ IDswapper --infile test.tsv.gz --id-column-index 0 --fetch "25" "5" "10" --outfile append_test.tsv.gz
The --id-column-index allows query by picking any column in large files with many columns
Fetch Table
These are the options supported for the --fetch argument
More options will be released in the next update
| Fetch Argument | Columns to be appended |
|---|---|
| 2 | Ensembl Transcript ID |
| 3 | Ensembl Protein ID |
| 4 | HGNC ID |
| 5 | Gene Symbol |
| 6 | Gene Description |
| 10 | Chromosome Location |
| 12 | Gene Aliases |
| 18 | Entrez Gene ID |
| 19 | Ensembl Gene ID |
| 20 | VEGA ID |
| 21 | UCSC ID |
| 23 | Refseq Accession |
| 25 | Uniprot ID |
| 30 | COSMIC Entry |
| 31 | OMIM ID |
| 36 | Orphanet ID |
| 43 | CD Name |
| 47 | RNA Central ID |
| 51 | MANE Select ID |
Example
1. Input file
| Entries |
|---|
| ENSG00000075624 |
| ENSG00000146648 |
| ENSG00000141510 |
2. Execute idswapper tool
$ IDswapper --infile test.txt --id-column-index 0 --fetch "25" "5" "10" --outfile append_test.txt
3. Output file
| Fetch Argument | Uniprot ID | Gene Symbol | Chromosome Location |
|---|---|---|---|
| ENSG00000075624 | P60709 | ACTB | 7p22.1 |
| ENSG00000146648 | P00533 | EGFR | 7p11.2 |
| ENSG00000141510 | P04637 | TP53 | 17p13.1 |
INSTALLATION
$ pip install IDswapper
Create the local idswapper database
requires mysql up and running
you can check using $ systemctl mysql status
Next,
$ python3 setup_db.py
Make sure the entries match the mysql db configuration filedb_config.json
Metadata
Release files for IDswapper 0.1.8
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 |
|---|---|---|---|---|
| idswapper-0.1.8.tar.gz | 5.6 MB | Without provenance | Details for idswapper-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| IDswapper-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for IDswapper-0.1.8-py3-none-any.whl |
Total release size: 11.2 MB
Release files / idswapper-0.1.8.tar.gz
| Download URL | idswapper-0.1.8.tar.gz |
|---|---|
| Size | 5.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7b2a1dd63a3c7870c60b879351a2a4d495303d7d8235a0333dfb9c425234124
|
|
BLAKE2b-256 checksum How to use checksums |
9668f893a8089adc7510dee88057095abfceaac784ff34a92d46beea6f8a6b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / IDswapper-0.1.8-py3-none-any.whl
| Download URL | IDswapper-0.1.8-py3-none-any.whl |
|---|---|
| Size | 5.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71cf8b94eb488fccb35ba1013175eb248c0cda20c6c3e173b5fc170ee10d6c84
|
|
BLAKE2b-256 checksum How to use checksums |
267bfd0387059283a434ea87269bece8241aa4e7af6b2ad72aec81363b8c88e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Security for IDswapper 0.1.8
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.