remove private alleles from a vcf file
2
0
Entering edit mode
10.5 years ago

Hello

is there an inbuild way to remove singletons from a vcf file? I would just really need to use vcf tools to just exclude them from the vcf file and than recode it into a new vcf file without the singleton variants.

The problem is that --singletons only uses the positions fo the singletons

snp • 4.5k views
ADD COMMENT
0
Entering edit mode

Could you use the output of --singletons as an input file for vcftools --positions option?

ADD REPLY
1
Entering edit mode
10.5 years ago

vcflib has a tool called vcffilter that can be used to do what you are asking.


https://github.com/ekg/vcflib

ADD COMMENT
1
Entering edit mode
10.5 years ago
Adam ★ 1.0k

In vcftools, you could just use a small MAF to achieve this. Something like --maf 0.0001 would achieve what you need (assuming you have fewer than 5000 samples).

ADD COMMENT
0
Entering edit mode

Clever solution, although this would miss any "private doubletons" in the dataset.

ADD REPLY
0
Entering edit mode

Is MAF minimum or maximum allele frequency and what would I set it at for 88 samples?

ADD REPLY

Login before adding your answer.

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