Removing common SNPs from a set of VCF files
1
0
Entering edit mode
7.1 years ago
Lina F ▴ 200

Hi all,

I am looking to generate a list of SNPs that are unique to different samples.

To that end, I used bcftools to generate a list of common SNPs for each sample as follows:

# for 9 samples
bcftools isec -p intersection -n =9 *vcf.gz

Now I am trying to subtract the common SNPs from the original VCF files to get the SNPs that are unique to each sample. I assume this should also be possible using bcftools but I could not find a "subtract" command.

Any advice is appreciated!

SNP vcf filtering • 4.4k views
ADD COMMENT
4
Entering edit mode
7.1 years ago
ATpoint 85k

Have a look at the --complement option within isec. It prints all entries but the ones that you supply in B.

ADD COMMENT
0
Entering edit mode

Great, thanks for pointing me in the right direction!

ADD REPLY

Login before adding your answer.

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