BCFtools outputs error : [bcf_sync] incorrect number of fields (6 != 5)
I launched samtools to call SNPs on 2 BAM files, and when it comes to BCFtools, both returned an error.
$ samtools mpileup -ugf refseq.fa aln.bam | bcftools view -bvcg - > var.raw.bcf
$ bcftools view var.raw.bcf | vcfutils.pl varFilter -D 100 > var.flt.vcf
It returns the following error:
[bcf_sync] incorrect number of fields (6 != 5) at 13:51289753
What does it mean? Can I just skip this error and keep going with my list of SNPs and indels?
• 7,799 views
•
link
1 answer
So I found my way around the problem. When samtools hasn't finished running the output BCF files are truncated which triggered that error when I run BCFtools.
• 0 views
•
link
Log in to answer this question.
Did you use
nohupsomewhere in your unix command?No I didn't use nohup, what does it stand for and what does it do? I figured that error happens when the BCF file is truncated .. now I'm not sure why it's truncated yet
Is it matter if I use the
nohupcommand ? I have met a similar problem as the error isThe following is the command that i have used to generate BCF file:
I have got an possible answer here:
And without using the
nohupmy file works fine.