Project

bio-dbsnp

0.0
No commit activity in last 3 years
No release in over 3 years
decoding the dbSNP bitfield containg detaild information
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 1.4.1
~> 1.0.0
~> 1.6.4
>= 0
~> 2.3.0
 Project Readme

bio-dbsnp¶ ↑

A library to decode “bitfield” information in dbSNP. In VCF format, bitfiled is contained in the “VP” field in the INFO column.

Further details of the format is shown in ftp.ncbi.nlm.nih.gov/snp/specs/dbSNP_BitField_latest.pdf

how to install¶ ↑

gem install bio-dbsnp

how to use¶ ↑

require 'bio-dbsnp'

vp = "050000000000000000000200"
bf = Bio::NCBI::Dbsnp::Bitfield.parse vp
bf.version #=> 5
bf.variation_class #=> :dips

See lib/bio/ncbi/dbsnp/bitfield.rb for implementation. spec/bio-dbsnp_spec.rb also describes a usage.

Copyright © 2011 Hiroyuki Mishima (missy at be.to, @mishimahryk at Twitter). See LICENSE.txt (the MIT Licence) for further details.