pyhg19
Get the coordinates of a variant from its RSID, or an RSID from its coordinates
Installation
First make sure you have followed the installation procedure for
pydbsnp. Then install pyhg19
with pip3:
pip3 install pyhg19
or
pip3 install --user pyhg19
For full functionality, you should appropriately set environment variables
PYHG19_PATH, PYHG19_MASKED, PYHG19_BOWTIE2_INDEX. For example, you could
add this to your .bash_profile:
export PYHG19_PATH=<path of your choice>
export PYHG19_MASKED=<path of your choice>
export PYHG19_BOWTIE2_INDEX=<path of your choice>
Examples
import pyhg19
rs10_coord = pyhg19.coord('rs10')
print(f'rs10 is on chromosome {rs10_coord.chr} at position {rs10_coord.pos}')
rs10_coord_tuple = pyhg19.coord_tuple('rs10')
print(
'rs10 is on chromosome {} at position {}'
.format(rs10_coord_tuple[0], rs10_coord_tuple[1])
)
rs_something = pyhg19.rsid(chr=1, pos=10019)
print(
'The RSID of the variant on chromosome 1 at position 10019 is {}.'
.format(rs_something)
)
Release files for pyhg19 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhg19-1.0.3.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhg19-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / pyhg19-1.0.3.tar.gz
| Download URL | pyhg19-1.0.3.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
082d711721a547dfc66710869c913405db32205c1323efd5d407fa797266e543
|
|
BLAKE2b-256 checksum How to use checksums |
c832b0e1b68cf2a7b7a8f1e76f7315a7b03d6f775c4861ca23f08d199174b7ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.10
|
Release files / pyhg19-1.0.3-py3-none-any.whl
| Download URL | pyhg19-1.0.3-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afc5a86b2dc43f8de3770dc5dd357dd21638f2516e9c40a66936a813b877d2cd
|
|
BLAKE2b-256 checksum How to use checksums |
f382ef4048aeba496e2d8251988b63d317d707b4233bb996550ffcee4449c4d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.10
|