Interface with dbSNP VCF data
Project description
pydbsnp
Interface with dbSNP VCF data
Installation
First install the python package via pip3
pip3 install pydbsnp
or
pip3 install --user pydbsnp
Once the python package is installed, download and index the dbSBP VCF data:
pydbsnp-download
pydbsnp-index
For hg19/GRCh37 coordinates:
pydbsnp-download --reference-build GRCh37
pydbsnp-index
Command line usage
pydbsnp-query -h
pydbsnp-query rs689
pydbsnp-query --reference-build GRCh37 rs689
API
Two classes are provided: Variant
and GeneralizedVariant
.
from pydbsnp import Variant
v = Variant('rs8056814')
print(v.chrom, v.pos, v.id, v.ref, v.alt)
print(v.info)
help(Variant)
gv = GeneralizedVariant('rs8056814')
print(v.chrom, v.pos, v.id, v.ref, v.alt)
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
pydbsnp-0.1.1.tar.gz
(5.1 kB
view hashes)