This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to Remove Phasing Information from a VCF File?

Can you just change pipe "|" to slash "/" in genotype GT field with e.g. bcftools annotate --set-format '%GT=[%TGT]\n'?

phasing

1 answer

bcftools +setGT   in.vcf -- -t a -n u

How can I use bcftools +setGT to get genotypes without phase e.g. "|" or "/"? For example, instead of 1|1 or 1/1, I would like to get 11

Log in to answer this question.