Efficiently Adding Missing 0/0 Sites to VCF from Whole-Genome Sequencing
1
0
Entering edit mode
4 months ago
Tobias • 0

Hey, from time to time I find myself wondering if there is a straight-forward way to add missing 0/0 sites at a set of positions to a VCF that resulted from whole-genome sequencing and therefore only contains het and hom-alt sites. The best solution I found so far involves merging a sample that contains all sites of interest (e.g. from 1kg) to the VCF with bcftools using the option to set missings to zero and then remove the sample again. It works, but it is cumbersome and it feels like there should be a better way of doing this. Thank you for your help!

vcf • 323 views
ADD COMMENT
0
Entering edit mode
4 months ago
 bcftools +setGT in.vcf -- -t q -i 'GT="RR"' -n .
ADD COMMENT

Login before adding your answer.

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