Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Utilities to handle dbSNP bitfield information
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
VERSION
bio-dbsnp.gemspec

README.rdoc

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

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

Something went wrong with that request. Please try again.