Re-format sample columns in VCF file
0
0
Entering edit mode
10 months ago
phinguyen • 0

Hi, I'm using a tool (GLIMPSE2_concordance) requesting sample format in VCF file is GT:PL:DP. However, my vcf only has the format GT.

My VCF file Requested VCF file
enter image description here enter image description here

Is it possible to add format fields PL and DP to VCF, which only has the GT format field? (not re-calling variants)

I consulted the GATK4 doc, and it seems that the only way is to re-calling variants.

Does anybody have any solution to this problem? Please let me know, I am very grateful, thanks.

vcf • 709 views
ADD COMMENT
1
Entering edit mode

Are the DP and PL fields on the INFO column? Maybe you can carry them to SAMPLE column from INFO. If you don't have the fields you would need to do variant calling again. GATK adds these field by default.

ADD REPLY
0
Entering edit mode

Unfortunately, my INFO column doesn't have DP and PL fields.

Side information: For someone who falls into a similar situation, if your INFO column has fields that need to be added to FORMAT, you could use the bcftools like this question.

ADD REPLY
0
Entering edit mode

Does GLIMPSE2 actually use the DP and PL, or does it just expect them to be there? The difference is whether you have to figure out the right values, or could fake it.

ADD REPLY

Login before adding your answer.

Traffic: 1493 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