Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • morangal
    Junior Member
    • Nov 2010
    • 6

    #1

    Bedtools and VCF files

    i'm trying to run intersectBed with a VCF file (produced by complete genomics, version vcf4.1) and a Bed file of the RefSeq genes(downloaded from UCSC table browser), but i don't get any results,
    i do know about certains variants included in my list that should appear in the intersection.
    i changed the first colomn of the VCF file from "1,2,3...X,Y" to "chr1. chr2... chrX, chrY" (even though i did not see any need for that in the documentation).
    my command is :
    intersectBed -wa -a RefSeqGenes.bed -b myfile.vcf

    strangely, when i run this with a minifile that contains only a few lines (with variants that i expect to be intersected) it works. but when i run it, with a larger vcf file (that contains the whole genome, or even a single chromosome's variants) i get nothing.

    any idea why??

    your help will be very appreciated :-)))
    Moran
  • aggp11
    Member
    • Jun 2011
    • 87

    #2
    Hi,

    I think intersectBed expects the format of chromosome name to be the same in both the input files, i.e. if you have "chr1, chr2 etc.." in the vcf file, make sure you have the chromosome names in the same format in the bed file as well.

    Comment

    • morangal
      Junior Member
      • Nov 2010
      • 6

      #3
      thanks! i've noticed that :-))
      but the big mystery, is why it does not work with the complete vcf file (after th echromosomes were prefixed with "chr"), but do work with a sample of it....

      Comment

      • aggp11
        Member
        • Jun 2011
        • 87

        #4
        Could you post the first few lines of the big vcf file (that doesn't work),the smaller file(that works) and the bed file?

        Comment

        • morangal
          Junior Member
          • Nov 2010
          • 6

          #5
          the mini-file that works contains the VCF header + this 1 lines:
          chr16 2121925 . G T . . NS=2;SS=Germline;CGA_FI=7249|NM_000548.3|TSC2|CDS|MISSENSE&7249|NM_001077183.1|TSC2|CDS|MISSENSE&7249|NM_001114382.1|TSC2|CDS|MISSENSE;CGA_PFAM=PFAM|PF03542|Tuberin GT:PS:FT:GQ:HQ:CGA_EHQP:AD:CGA_RDP:CGA_ODP:CGA_OAD:CGA_ORDP 1/0:.:PASS:472:472,499:499,499:61:29,32:32:60:30,30:30 1/0:.:PASS:571:571,571:571,571:60:30,30:30:61:29,32:32
          (btw, it works with and without the header lines)

          the full original file, that does not work, contains the same header and these first 3 lines:
          chr1 1 . N <CGA_NOCALL> . . END=10000 GT ./. ./.
          chr1 10001 . T <CGA_CNVWIN> . . NS=2;CGA_WINEND=12000 GT:CGA_GP:CGA_CP:CGA_PS:CGA_CT:CGA_TS:CGA_CL:CGA_LS:CGA_SCL:CGA_SLS:CGA_LAF:CGA_LLAF:CGA_ULAF .:0.341:.:0:.:0:0.997:326:.:.:.:.:. .:0.553:2:20:=:20:1.003:86:1.003:86:0.29:0.17:0.5
          chr1 10001 . T <CGA_NOCALL> . . END=10472
          GT ./. ./.


          it should be mentioned that in order to add "chr" to the first colomn of the original VCF, i had to remove the header lines, add "chr" to the rest (using awk '{print "chr" $0}' originalfile.vcf ) and then re-concatenate the header lines. i don't see how these text manipulations should affect the program, but maybe i missing something here ?


          the Bed file to be intersected contains these first lines:
          chr1 67000041 67000051 NM_032291_cds_0_0_chr1_67000042_f 0 +
          chr1 67091529 67091593 NM_032291_cds_1_0_chr1_67091530_f 0 +
          chr1 67098752 67098777 NM_032291_cds_2_0_chr1_67098753_f


          Thanks :-)))

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 12:22 PM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-11-2026, 10:35 AM
          0 responses
          13 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-06-2026, 07:41 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          48 views
          0 reactions
          Last Post SEQadmin2  
          Working...