combining overlapping vcf's into one
1
0
Entering edit mode
5.2 years ago
eric.londin ▴ 60

Hi all, I have a question as to how to combine two separate VCFs into one large one. For example, say I have a dbSNP VCF and a Cosmic database VCF. I now want to merge or combine them into one file into a way that will produce a single file that contains the contents of both files. If there is an overlap between the two, I would want to keep them as a single entry, just that it would annotate the ID field with both entries (the dbSNP rs# and the Cosmic ID). I can't seem to find a good way to do this using GATK, VCF tools, or some other approach.

Thanks for any suggestions.

VCF Mergining VCFs • 1.4k views
ADD COMMENT
3
Entering edit mode

You can take a look at vcf-merge in vcf-tools

ADD REPLY
1
Entering edit mode
5.2 years ago

bgzip and tabix index the files and use bcftools merge.

ADD COMMENT
1
Entering edit mode

I think it should actually be the bcftools concat and not the "merge". The latter basically merges the samples while the concat merges/concatenates the sites.

ADD REPLY

Login before adding your answer.

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