Combining two VCFs each with own set of mutations
1
0
Entering edit mode
4.5 years ago
vctrm67 ▴ 50

I have two VCF files, each containing somatic mutation calls on each chromosome (ie. the VCFs are not separated by chromosome number or mutation position - they each contain calls on every chromosome) . I want to combine these two files into one. What is the best tool to do this? I tried bedtools concat but I get this message:

Different number of samples in /path/to/vcf. Perhaps "bcftools merge" is what you are looking for?
[W::bcf_hdr_merge] Trying to combine "AD" tag definitions of different lengths

Should I be using the merge function?

vcf • 1.6k views
ADD COMMENT
0
Entering edit mode
4.5 years ago

bcftools merge is likely what you want. It will preserve the VCF format and genotype information for each sample appropriately.

ADD COMMENT
0
Entering edit mode

They should be from the same sample. Does this make a difference?

To provide some clarification, these are VCFs that contain calls made by two different callers on the same sample. I want to combine them into one VCF and annotate that.

ADD REPLY
0
Entering edit mode

That's fine, it can still merge them and will even help you determine which caller called which variant (or where they overlap).

ADD REPLY

Login before adding your answer.

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