bcftools merge failed: incorrect number of PL fields
1
1
Entering edit mode
6.3 years ago

I'm using bcftools merge and I get this error

Incorrect number of PL fields (3) at chr1:10240, cannot merge.

I believe this is due to different versions of bcftools/GATK. However, I do not care about the PL fields. Is there a way for me to skip this error (make it a warning) or do I have to reformat the VCFs?

bcftools merge vcf • 4.9k views
ADD COMMENT
3
Entering edit mode
6.3 years ago

I would just normalise the BCFs or VCFs before attempting to merge them. Take a quick look at the sequence of commands here: bcftools consensus error

ADD COMMENT
1
Entering edit mode

I believe this is due to different versions of bcftools/GATK

Yes, it is: https://github.com/samtools/bcftools/issues/110

These things happen in bioinformatics.

It should not be an issue to re-analyse your data using updated versions. Also, I strongly encourage you to normalise your BCFs/VCFs, as to which I have alluded - this will save you from other types of headaches.

ADD REPLY
0
Entering edit mode

Thanks, I've used bcftools norm to left-align and to split multiallelic sites into biallelic sites (for plink). I solved the issue by removing the PL entries. How would bcftools norm work in this situation of differing versions?

ADD REPLY
1
Entering edit mode

It was just a way of making sure that other issues unrelated to the PL were not the cause. Sometimes error messages are hopelessly unhelpful.

glad that you got it sorted.

ADD REPLY
0
Entering edit mode

Ahh I see. Thanks for the help

ADD REPLY

Login before adding your answer.

Traffic: 1976 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6