Question: perl, vcf-subset: Broken VCF header, no column names?
gravatar for severalorks
4.2 years ago by
severalorks110 wrote:

EDIT: I found I can also use Data Slicer from 1000Genomes browser tools to do what I need

I ran:

tabix -h /data/ALL.chrX.phase3_shapeit2_mvncall_integrated_v1b.20130502.genotypes.vcf.gz | perl vcf-subset -c HG00097 | bgzip -c > HG00097.vcf.gz

and got the error: Broken VCF header, no column names?. I was able to obtain a tabix file (an issue I already solved). Why is this error occurring? I've tried looking at this:

But the suggestion, using head -20, doesn't work.

Ultimately, what I'm trying to do is this:

tabix -h 17:1471000-1472000 | perl vcf-subset -c HG00098 | bgzip -c > HG00098.vcf.gz
tabix -p vcf HG00098.vcf.gz
cat ref.fa | vcf-consensus HG00098.vcf.gz > HG00098.fa

ADD COMMENTlink modified 4.2 years ago • written 4.2 years ago by severalorks110
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: 1322 users visited in the last hour