Search
Question: Exclude Mutations from Mutation List
1
gravatar for Haiying.Kong
6 months ago by
Haiying.Kong90
Germany
Haiying.Kong90 wrote:

I have a list of mutations as VCF1.vcf, and another list of mutations as VCF2.vcf.

I need to exclude mutations in VCF1.vcf that are appearing in VCF2,vcf, and save the result as a new vcf file.

What could be the most elegant way of doing this?

ADD COMMENTlink modified 6 months ago by Martin Morgan ♦♦ 20k • written 6 months ago by Haiying.Kong90
0
gravatar for Martin Morgan
6 months ago by
Martin Morgan ♦♦ 20k
United States
Martin Morgan ♦♦ 20k wrote:

This could be a job for VariantAnnotation::filterVcf(), including the prefilter= argument; see the filterVcf vignette available from the VariantAnnotation landing page https://bioconductor.org/packages/VariantAnnotation, as well as help page. It's difficult to provide additional help without knowing what 'appearing in' means in a computational  sense.

ADD COMMENTlink written 6 months ago by Martin Morgan ♦♦ 20k

Thank you so much. The information you provided is more than enough help  :)

ADD REPLYlink written 6 months ago by Haiying.Kong90
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.2.0
Traffic: 113 users visited in the last hour