This is a test version of Biostars. For the public version, visit https://www.biostars.org.
VCF to bcf conversion; vcf file header missing

Could you please suggest me how can I add contig header into the vcf file

$ vcftools --vcf ZZ_ZW_BiSnps.recode.vcf --recode-bcf --contigs header.txt

VCFtools - 0.1.16
(C) Adam Auton and Anthony Marcketta 2009
Parameters as interpreted:
    --vcf ZZ_ZW_BiSnps.recode.vcf
    --contigs header.txt
    --recode-bcf
After filtering, kept 69 out of 69 Individuals
Outputting BCF file...
Error: Could not open `contigs file: header.txt`
vcftools vcf
Could not open `contigs file: header.txt`

header.txt is not in your current directory.

0 answers

No answers yet.

Log in to answer this question.