bsctools merge on duplicate samples
1
0
Entering edit mode
8.7 years ago
xinhui.wang ▴ 550

Dear all,

I try to merge several vcfs (each one for one chr, and with same samples) into one vcf file. However, when I run

bcftools merge -l file_list.txt --force-samples -o all.vcf

where file_list is a list of vcf file I try to merge with.

I got an all.vcf file with sample names as

2428822
2543874
2545438
2626320
2627207
2:2428822
2:2543874
2:2545438
2:2626320
2:2627207
3:2428822
3:2543874
3:2545438
3:2626320
3:2627207

Obviously, bcftools assumes that these samples are different, could any one help me with this problem?

Thanks and with best regards,

Xinhui

SNP • 3.1k views
ADD COMMENT
3
Entering edit mode
8.7 years ago

Try bcftools concat instead.

concat       concatenate VCF/BCF files from the same set of samples
merge        merge VCF/BCF files files from non-overlapping sample sets
ADD COMMENT
0
Entering edit mode

thanks. It worked!

ADD REPLY

Login before adding your answer.

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