Skip to main content

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)

Source distribution for IDswapper 0.1.8
File Size Uploaded
idswapper-0.1.8.tar.gz 5.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for IDswapper 0.1.8
File Interpreter ABI Platform
IDswapper-0.1.8-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page