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
• 7,009 views
•
link
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
• 0 views
•
link
Log in to answer this question.