WGS variant filtering for exome
1
0
Entering edit mode
13 months ago
isMM • 0

Hello everyone, I have a set of WGS data that I have processed until variant calling with freebayes, but I am only interested in conserving the mutations that are found in exonic regions, which would be the most reliable way of accomplishing this?

Thanks in advanced

wes snp strelka freebayes wgs • 488 views
ADD COMMENT
1
Entering edit mode
13 months ago
gunzip -c /path/to/your.gtf.gz | awk -F '\t' '($3=="exon") {printf("%s\t%d\t%s\n",$1,int($4)-1,$5);}' | LC_ALL=C sort -T . -t $'\t' -k1,1 -k2,2n | bedtools merge > exons.bed

bcftools view --regions-file exons.bed indexed.vcf.gz
ADD COMMENT

Login before adding your answer.

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