How to apply vcftools --diff and extract only the different variants
0
0
Entering edit mode
2.8 years ago
eleni.psar • 0

Hello, I am trying to apply vcftools --diff in order to extract the different variants between two VCF files.

vcftools --vcf marked_IO002_tumor-pe.vcf --diff marked_IO002_normal-pe.vcf --diff-site --out t_v_n

I am getting this as result :

  VCFtools - 0.1.16
    (C) Adam Auton and Anthony Marcketta 2009

    Parameters as interpreted:
            --vcf marked_IO002_tumor-pe.vcf
            --out out.diff.sites
            --diff marked_IO002_normal-pe.vcf
            --diff-site
    Comparing sites in VCF files...
    Found 75584 sites common to both files.
    Found 419593 sites only in main file.
    Found 84102 sites only in second file.
    Found 2908 non-matching overlapping sites.
    After filtering, kept 498085 out of a possible 498085 Sites
    Run Time = 6.00 seconds
    0

I want to extract these 419593 sites which only belong to the main file (the first file) do you know if there is a way to do that? Can these sites that I want to extract be in a new vcf file? If you could help me, I would be more than thankful!

Thanks

vcf ngs illumina annotation • 1.6k views
ADD COMMENT
2
Entering edit mode

use bcftools isec

ADD REPLY
1
Entering edit mode

and that was the solution suggested in your previous question: How to compare vcf files and keep only their differencies ?

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

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