Entering edit mode
8.0 years ago
samuel.lipworth
▴
30
Hi,
Trying to use VCF tool's vcf-compare function.
I have bgzipped and tabixed indexed my files
bgzip -c file.vcf > file.vcf.gz
tabix -p vcf file.vcf.gz
I then call vcf-compare file1.vcf.gz file2.vcf.gz but get the error:
Broken VCF header, no column names?
at /usr/share/perl5/Vcf.pm line 172.
Vcf::throw(Vcf4_2=HASH(0x25c1df8), "Broken VCF header, no column names?") called at /usr/share/perl5/Vcf.pm line 866
VcfReader::_read_column_names(Vcf4_2=HASH(0x25c1df8)) called at /usr/share/perl5/Vcf.pm line 601
VcfReader::parse_header(Vcf4_2=HASH(0x25c1df8)) called at /usr/bin/vcf-compare line 198
main::compare_vcfs(HASH(0x1fa1850)) called at /usr/bin/vcf-compare line 19
What can I do about this?
You need the -h option in tabix, to preserve the headers.
Thanks - I tried this but the error persists
what's the output of
grep "#CHROM" -m1 file.vcf
?