How To Convert The Vp Info Field In The Dbsnp Vcf File
1
3
Entering edit mode
11.6 years ago
eva.knig ▴ 70

My question has to some extend been discussed here:

dbSNP132 1000genomes vcf file info field: BitField structure

I need to understand how to covert the VP INFO field of a VCF file into the binary number. Here is a line from a dbSNP file.

1       10144   rs144773400     TA      T       .       .       RSPOS=10145;dbSNPBuildID=134;SSR=0;SAO=0;VP=050000000005000002000200;WGT=1;VC=DIV;ASP;OTHERKG

I am interested in other fields than the WGT, VC, R5, and ASP, which give some of the information in VP already decoded.

Here is the explanation how to interpret the VP field. ftp://ftp.ncbi.nlm.nih.gov/snp/specs/dbSNP_BitField_latest.pdf

Especially, I am interested in the byte F4 that corresponds to the allele frequency proportions. From what I understand, this number needs to be converted to a binary number to read the bits, however, what is unclear to me is the number system in the VP number is in. In the post mentionend obove, Biomed gave a number that had "a" in it so it must be a number system greater 11, maybe hexadecimal? the VP number corresponds to a 12 byte object, so we should obtain 96 bits if the number is decoded. However, if I assume that the VP number is hexadecimal and I convert to binary, I obtain 91 bits. Also decimal oder octal does not match.

Another point: Is the whole number converted as one? The VP number has 24 characters. Maybe two characters at a time correspond to one byte. So I would have to convert only 00 to get my F4 byte?! but then again, what number system is 00 in?

Does somebody know the answer? Thanks.

vcf dbsnp • 2.5k views
ADD COMMENT
0
Entering edit mode
11.6 years ago
eva.knig ▴ 70

In case somebody else is interested, the VP number is hexadecimal. See http://bms.zeugner.eu/doc/htmlhelp/bin2hex.html and http://en.wikipedia.org/wiki/Binary_numeral_system#Hexadecimal

ADD COMMENT

Login before adding your answer.

Traffic: 1901 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6