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
            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
          29 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          39 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          45 views
          0 reactions
          Last Post SEQadmin2  
          Working...