Question: Using Tabix And Vcf Tools To Get Cnv / Sv Frequencies From 1000 Genomes Data
gravatar for Ryan D
8.7 years ago by
Ryan D3.3k
Ryan D3.3k wrote:

I read this excellent post by Stephen on getting data from 1000 genomes with tabix, but it seems to not be working for me. I use tabix to get the data in the following manner:

tabix -fh 22:1000000-10000000 > ~/delete.vcf

It gets a vcf file, but the file only seems to have headers, no variants info... like so:

##INFO=<ID=SNPSOURCE,Number=.,Type=String,Description="indicates if a snp was called when analysing the low coverage or exome alignment data">
#CHROM  POS     ID      REF     ALT     QUAL    FILTER  INFO    FORMAT  HG00096...

So after running vcftools, obviously I get nothing since there is not genotype data:

vcftools --vcf ~/delete.vcf --freq --out ~/delete.txt

VCFtools - v0.1.7
(C) Adam Auton 2009

Parameters as interpreted:
        --vcf /home/delahar/delete.vcf
        --out /home/delahar/delete.txt

Reading Index file.
File contains 0 entries and 1092 individuals.
Applying Required Filters.
After filtering, kept 1092 out of 1092 Individuals
After filtering, kept 0 out of a possible 0 Sites
Error:No data left for analysis!

I'm guessing this is an issue with the way I'm using tabix. Ultimately I want to get the fields that have VT=SV in their column. So extra help on getting that would be greatly appreciated.



genome tabix vcftools cnv • 4.2k views
ADD COMMENTlink modified 6.5 years ago by Biostar ♦♦ 20 • written 8.7 years ago by Ryan D3.3k

I have heard from 2 people that they can't get Tabix to retrieve data from the internet...

ADD REPLYlink written 8.7 years ago by Zev.Kronenberg11k
gravatar for Adam
8.7 years ago by
United States
Adam1000 wrote:

Your tabix command is returning no data as there are no SNPs in that region of chr22. The first SNPs on chr22 are around the 16Mb mark. Try:

tabix -fh <> 22:1000000-16052250

And see if that returns some data.

ADD COMMENTlink written 8.7 years ago by Adam1000

Thanks. I finally figured it out. You were exactly right.

ADD REPLYlink written 8.7 years ago by Ryan D3.3k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1851 users visited in the last hour