Filtering out by gene and samples from VCF files
1
1
Entering edit mode
4.5 years ago
gprashant17 ▴ 110

Hi,

I have a set of genes and samples from GTEx dataset. I want to filter out variants from a very large VCF file corresponding to these genes and samples. Is there any way to implement the same using VCFtools?

Thanks

vcf SNP vcftools gtex gene • 2.0k views
ADD COMMENT
1
Entering edit mode
4.5 years ago

build a bed of your genes , create a complement with 'bedtools complement' and then filter with 'bcftools view --regions-file not-gene.bed the.vcf '

ADD COMMENT
0
Entering edit mode

Thanks, filtering out based on the samples (individuals) can be done in the same manner?

ADD REPLY

Login before adding your answer.

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