Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zxyeo
    Junior Member
    • Jun 2011
    • 6

    #1

    Overlap number discrepancy between VCFTools and BEDTools

    --------------------------------VCFTools-----------------------------------------------------
    $./vcf-compare in.vcf.gz dbsnp_132.hg18.vcf.gz > in.snp-dbsnp.summary
    $less in.snp-dbsnp.summary

    Number of sites found only in
    115 in.vcf.gz (0.8%)
    15101 dbsnp_132.hg18.vcf.gz (0.1%) in.vcf.gz (99.2%)
    26694223 dbsnp_132.hg18.vcf.gz (99.9%)

    Number of REF matches: 15052
    Number of ALT matches: 14449
    Number of REF mismatches: 49
    Number of ALT mismatches: 603
    Number of sites lost due to grouping (e.g. duplicate sites)
    2024327 (7.0%) .. read 28733651, reported 26709324 dbsnp_132.hg18.vcf.gz

    --------------------------------BEDTools-----------------------------------------------------
    $intersectBed -u -f 1 -a in.vcf -b dbsnp_132.hg18.vcf > in.snp-dbsnp.u.bed
    $wc -l in.snp-dbsnp.u.bed
    15092 in.snp-dbsnp.u.bed

    ***********************************************************************************************
    As you can see, the number of overlap is different. It is 15101 from VCFTools but 15092 by BEDTools.

    I also used the vcf-isec to get the VCFTools version of overlap vcf. Then, I used the 'intersectBed' to overlap the this vcf (VCFTools version) with the in.snp-dbsnp.u.bed (BEDTools version) and get all 15092 overlaps.

    AFAIK, BEDTools did the overlap by only using the position information (i.e. consider an overlap even with different base(s)). But I am not sure what VCFTools does to come out with the additional 9 overlaps (or why BEDTools has 9 overlaps missing).

    It would be great if someone could explain what VCFTools:vcf-isec is doing and give me some advice on how to interpret the above mentioned discrepancy. Many thanks!
    Last edited by zxyeo; 07-25-2011, 07:48 PM.
  • zxyeo
    Junior Member
    • Jun 2011
    • 6

    #2
    Update: is BEDTools doing more than simply comparing the genomic position?

    I just looked at the additional 9 entries and I would like to update my interpretation:

    Let's start with 1 of the 9 entries (generally, other entries give the same observation):
    chr2 79990299 . GAGC G 408.26 PASS AC=2;AF=1.00;AN=2;DP=12;FS=0.000;HRun=0;HaplotypeScore=63.0941;MQ=41.32;MQ0=0;QD=34.02;SB=-158.86;SF=0,1,1

    In 'dbsnp_132.hg18.vcf', a similar entry was found:
    chr2 79990299 rs10578220 G GAGC . PASS G5;G5A;GNO;NSF;REF;RSPOS=80136791;SAO=0;SCS=0;SLO;SSR=0;VC=INDEL;VP=050100001201030100000200;WGT=1;dbSNPBuildID=119

    i.e. somehow my REF and ALT base(s) were switched.

    Interestingly, BEDTools managed to distinguish them (which means BEDTools might be using the base identity on top of position information). I guess VCFTools might be only considering the position information (that's why this is detected as overlap). Correct me if this is not true.

    Comment

    • wanguan2000
      Member
      • Nov 2010
      • 24

      #3
      vcf-compare

      Compares positions in two or more VCF files and outputs the numbers of positions contained in one but not the other files; two but not the other files, etc, which comes handy when generating Venn diagrams. The script also computes numbers such as nonreference discordance rates (including multiallelic sites), compares actual sequence (useful when comparing indels), etc.

      vcf just considering the position information.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      43 views
      0 reactions
      Last Post SEQadmin2  
      Working...