extract SNPs present only in one individual and not in all the others from a multisample vcf file
1
1
Entering edit mode
5.7 years ago

Hi, I have a multi-samples vcf file with four samples. I want to extract the variants present only in one specific individual but not present in the others 3 individuals. Namely, I want to extract the variants which are typical of that individual. Which is the simplest way to do this? Thanks

SNP • 1.9k views
ADD COMMENT
2
Entering edit mode
5.7 years ago

To identify samples that are 'private' to a specific sample, then use:

bcftools view --private --samples 2624 MyVariants.vcf

Here, sample 2624 is the sample for whom I want to identify private variants.

Kevin

ADD COMMENT

Login before adding your answer.

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