timflutre / eqtlbma

Package to detect eQTLs jointly in multiple subgroups (e.g. tissues) via Bayesian Model Averaging.
http://www.plosgenetics.org/article/info%3Adoi%2F10.1371%2Fjournal.pgen.1003486
GNU General Public License v3.0
22 stars 12 forks source link

Update snp.cpp #10

Closed surbut closed 9 years ago

surbut commented 9 years ago

We think that these modifications are necessary to comply with the VCF format of the GTEX data (with GT in the 2nd field, the first field is the GL). GL/GT/DS. However, maybe we should check if these will work with all VCF files?

timflutre commented 9 years ago

"GT" isn't always at the 2nd position (see official spec). But the current code still has to be fixed. Can you try to add code that (1) find the location at which "GT" is in the column "FORMAT", and then (2) split the column and retrieve the genotype?