Brilliant! it worked by changing to .vcf. Many thanks GenoMax.
Hi all, This is my first time trying to understand and visualize a VCF file on IGV, I make my vcf as follows:
samtools mpileup -I -u -f genome.fa alignment.bam > pileup.bcf
bcftools call -cv pileup.bcf > variant.bcf
Everything worked, the final result looks like the manual said it should be, but IGV says:
Error loading /variant.bcf: Unable to parse header with error: Input stream does not contain a BCF encoded file; BCF magic header info not found, at record 0 with position 0:, for input source: ./mysource
Any suggestion?
1 answer
This is a VCF format file in plain text (not BCF which would be binary). Perhaps IGV is expecting this file to be in the right format based on the extension. You could try renaming the file to VCF and see if it works. You will need to index the VCF file using tabix or igvtools.
Log in to answer this question.
What does
file variant.bcfsay?the first few lines:
the last ones: