vcftools merge: Incorrect number of F1R2 fields (2) at chr12:29486505, cannot merge.
0
0
Entering edit mode
4.9 years ago
Shicheng Guo ★ 9.4k

Hi All,

I want to merge 38 vcf files with bcftools merge:

bcftools merge --force-samples -l input.txt -Oz -o LungBrain.vcf.gz

However, bcftools report error:

Incorrect number of F1R2 fields (2) at chr12:29486505, cannot merge.

I checked this variant and found:

chr12   29486505    .   CAG     C,CTAG  16.87   .  GT      0/0     0/0     ./.     0/2

Any suggestion?

Thanks.

SNP vcftools merge F1R2 • 1.3k views
ADD COMMENT
2
Entering edit mode

I would suggest switching to bcftools. That may or may not solve your issue, but it is the recommended tool to manipulate vcf files nowadays.

ADD REPLY
0
Entering edit mode

I just forcely removed this variant. I know it is not best solution to do that but it do work. after I remove this variant, the whole pipeline works.

ADD REPLY
2
Entering edit mode

After having another look at this, the "1" allele is missing from this. You have a multivariate position, but only a 0 and a 2 allele.

ADD REPLY
0
Entering edit mode

One should always bcftools norm a VCF with the reference fasta before further manipulating the file with bcftools, as a lot of things can go (semantically) wrong with operations such as merge or concat when multi-allelic variants are involved.

ADD REPLY

Login before adding your answer.

Traffic: 2485 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