This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to view the contents and header of a Vcf file in linux using VCFTOOLS

Hi,

I just installed vcftools using linux and used the command as below :

vcftools --gzvcf ALL.chr1.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz --freq --chr 1 --out chr1_analysis

Here's what it reads:

Reading Index file.
File contains 6468094 entries and 2504 individuals.
Applying Required Filters.
After filtering, kept 2504 out of 2504 Individuals
After filtering, kept 6468094 out of a possible 6468094 Sites
Run Time = 29.00 seconds

However, I am unable to view the entries of the file. Is there any way to do it ?

Many Thanks in Advance

vcftools 1000 genomes

If it is zipped file you can use zless

1 answer

gunzip -c ALL.chr1.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz

Thanks u so much:) it works

If this answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted. Upvote|Bookmark|Accept

Log in to answer this question.