Utilities for working with human genome build hg19
Project description
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)
)
Project details
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 pyhg19-1.0.3.tar.gz.
File metadata
- Download URL: pyhg19-1.0.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
082d711721a547dfc66710869c913405db32205c1323efd5d407fa797266e543
|
|
| MD5 |
566c1369cf62ed99c6d7adafa837dd50
|
|
| BLAKE2b-256 |
c832b0e1b68cf2a7b7a8f1e76f7315a7b03d6f775c4861ca23f08d199174b7ac
|
File details
Details for the file pyhg19-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pyhg19-1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc5a86b2dc43f8de3770dc5dd357dd21638f2516e9c40a66936a813b877d2cd
|
|
| MD5 |
d8a270d23d484b3cfc250ba090540366
|
|
| BLAKE2b-256 |
f382ef4048aeba496e2d8251988b63d317d707b4233bb996550ffcee4449c4d8
|