Question: Filtering out by gene and samples from VCF files
0
gravatar for gprashant17
12 months ago by
gprashant1770
gprashant1770 wrote:

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

gtex vcftools snp gene vcf • 437 views
ADD COMMENTlink modified 12 months ago by Pierre Lindenbaum131k • written 12 months ago by gprashant1770
1
gravatar for Pierre Lindenbaum
12 months ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum131k wrote:

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 COMMENTlink written 12 months ago by Pierre Lindenbaum131k

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

ADD REPLYlink modified 12 months ago • written 12 months ago by gprashant1770
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1891 users visited in the last hour