This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Vcf file to vcf.gz

Dear All,

I have vcf file with me and I want to convert this vcf file to vcf.gz format. Please help me regarding this. I am not aware of scripts so it would be good if anyone can tell me the stepwise procedure to convert my vcf file to vcf.gz type. Thanks in advance!

Regards
Shiwali

vcf

1 answer

htslib: https://github.com/samtools/htslib

bgzip file.vcf

bcftools: https://github.com/samtools/bcftools

bcftools view -O z -o file.vcf.gz file.vcf

Log in to answer this question.