A tool for swapping IDs in a file by fetching various IDs from idswapper database
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idswapper-0.1.8.tar.gz.
File metadata
- Download URL: idswapper-0.1.8.tar.gz
- Upload date:
- Size: 5.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7b2a1dd63a3c7870c60b879351a2a4d495303d7d8235a0333dfb9c425234124
|
|
| MD5 |
16064deff041bc6cea4eae478fff2b44
|
|
| BLAKE2b-256 |
9668f893a8089adc7510dee88057095abfceaac784ff34a92d46beea6f8a6b5c
|
File details
Details for the file IDswapper-0.1.8-py3-none-any.whl.
File metadata
- Download URL: IDswapper-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71cf8b94eb488fccb35ba1013175eb248c0cda20c6c3e173b5fc170ee10d6c84
|
|
| MD5 |
68a7f512569514b42319876720836a56
|
|
| BLAKE2b-256 |
267bfd0387059283a434ea87269bece8241aa4e7af6b2ad72aec81363b8c88e4
|