This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Using bcftools to merge files of different individuals, getting only shared sites

Hello, I have two vcf files that include non-overlapping sets of individuals. I would like to merge these into one vcf file, keeping only sites that appear in each of the files. There used to be a way to do this using GATK, but that is no longer supported in GATK4.

It seems like this could be done using isec (to get sites) and then merge, restricting the output to those sites, but is there any way to do it in a single step?

vcf genotypes bcftools

0 answers

No answers yet.

Log in to answer this question.