Question: To remove variants that encode for PE-PPE proteins from .vcf file
0
gravatar for kumari.indu31
3 months ago by
kumari.indu310 wrote:

We re trying to remove PE-PPE proteins from filtered .vcf file using the following commands:

 intersectBed -a R883_Filter.vcf -b pe_ppe.bed -header > output.vcf
 vcftools --vcf R883.vcf --exclude-positions-overlap pe_ppe_pos.txt --recode --recode-INFO-all --out R883_pos.vcf
bedtools intersect -u -a R883.vcf -b pe_ppe.bed > R883_no_PE.vcf

The output file is fine, however when we are using Annovar, to obtain the file for further analysis using command:

table_annovar.pl R883.vcf -buildver MTB -out R883_anno -remove -protocol refGene -operation g -nastring . --vcfinput

In the final annotated file, we are observing PE and PPE proteins. Can someone give a solution to this problem?

vcftools annovar bedtools • 209 views
ADD COMMENTlink modified 3 months ago • written 3 months ago by kumari.indu310

vcftools is deprecated. how about getting the complement of pe_ppe.bed with bedtools complement and then just use:

bcftools view --targets-file not-pe-ppe.bed  R883_Filter.vcf > R883_no_PE.vcf
ADD REPLYlink modified 3 months ago • written 3 months ago by Pierre Lindenbaum131k

It is not very clear what is the content of pe_ppe.bed. In case you want to exclude variants that overlap regions in the pe_ppe.bed file you can simply use intersectBed with the -v flag.

ADD REPLYlink written 3 months ago by husensofteng270

We have tried this command as well: bcftools view --targets-file not-pe-ppe.bed R883_Filter.vcf > R883_no_PE.vcf

However, when we annotate file using annovar then we are still finding PE-PPE genes in the final plot.

ADD REPLYlink written 3 months ago by kumari.indu310

Please show the entries from ANNOVAR. They could be referring to upstream and downstream of the gene. Removing variants from a VCF is as simple as bcftools view --exclude

ADD REPLYlink written 3 months ago by Kevin Blighe66k

We did removed proteins using bcftools view --exclude, however, after running Annovar, we are facing same problem.

ADD REPLYlink written 3 months ago by kumari.indu310

Please use ADD REPLY/ADD COMMENT when responding to existing posts to keep threads logically organized. SUBMIT ANSWER is for new answers to original question.

ADD REPLYlink written 3 months ago by genomax91k

You did not quite answer my question:

Please show the entries from ANNOVAR.

ADD REPLYlink written 3 months ago by Kevin Blighe66k
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: 1865 users visited in the last hour