How to view the contents and header of a Vcf file in linux using VCFTOOLS
1
0
Entering edit mode
6.8 years ago
sridevi • 0

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 • 13k views
ADD COMMENT
1
Entering edit mode

If it is zipped file you can use zless

ADD REPLY
3
Entering edit mode
6.8 years ago
gunzip -c ALL.chr1.phase3_shapeit2_mvncall_integrated_v5a.20130502.genotypes.vcf.gz
ADD COMMENT
0
Entering edit mode

Thanks u so much:) it works

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

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