how to compare variances with VCF file ?
1
0
Entering edit mode
9.4 years ago
amir.jebelli ▴ 50

Hi, Please check the problem and the solutoin I apply and tell me if it is correct or not.

The problem:
I have a few variances (chr,position,ref_base,alt_base,gene) and also 50 vcf files. I need to check that if my variances exist in any of VCF files.

The solution:
First I use Annovar program to convert vcf files to Annovar Input file (convert2annovar command) and second I user Annovar again (table_annovar command with refGene,esp6500siv2_all,1000g2014oct_all and snp138 protocols) to generate a tab delimited file which contain VCF variances and Lastly I user linux "cat" command and pipe in into "grep" command to check if any of my variaces exist in that annovar output file.

please tell that if this is a common way for searching a varince in a vcf file ?

vcf • 2.4k views
ADD COMMENT
1
Entering edit mode

i think with VCFtools you can define and filter indels...az koja bioinformatics yad gerefti kalak?

ADD REPLY
1
Entering edit mode

I use vcfinterset from vcflib to solve the problem. I also find that I can filter vcf files with vcftools program.

4-5 mahi hast khodam shoro kardam be yad gereftam.

ADD REPLY
0
Entering edit mode

eyval dadash, carry on

ADD REPLY
2
Entering edit mode
9.4 years ago

You might take a look at tools like bedtools, bedops, vcftools, or VariantAnnotation/GenomicRanges (Bioconductor).

ADD COMMENT
1
Entering edit mode

Yup, one or more of these programs will allow the OP to do exactly what they want.

ADD REPLY
0
Entering edit mode

Thanks Sean, I use vcfintersect from vcflib to check if my variances exists in vcf file.

vcfintersect -b MY_INPUT_VARIANCES.bed MY_VCF_FILE.vcf.gz
ADD REPLY

Login before adding your answer.

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