Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • camelbbs
    Member
    • Jun 2011
    • 49

    #1

    writing script to convert bam to bed

    Hi,
    I want to ask if anyone write a script to convert bam to bed.

    I tried bamtools bamtobed but while i import the result bed files to IGV, i see it is very different to the bam files.

    So I want to ask if anyone know this.

    Thanks!!
  • ETHANol
    Senior Member
    • Feb 2010
    • 308

    #2
    See bedtools. Is your data RNA-seq data? If so you have to bed12 format to accommodate for gaps.
    --------------
    Ethan

    Comment

    • camelbbs
      Member
      • Jun 2011
      • 49

      #3
      Originally posted by ETHANol View Post
      See bedtools. Is your data RNA-seq data? If so you have to bed12 format to accommodate for gaps.
      Thanks, and how to view bed12 files in IGV?

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        If you only want to view BAM files is there is reason you are converting them to bed12?

        Originally posted by camelbbs View Post
        Thanks, and how to view bed12 files in IGV?

        Comment

        • camelbbs
          Member
          • Jun 2011
          • 49

          #5
          Originally posted by GenoMax View Post
          If you only want to view BAM files is there is reason you are converting them to bed12?
          Thanks. I just curious while I view bed and bam files in IGV, they show difference. bed file have coverage in intron region, but not in bam.

          Comment

          • camelbbs
            Member
            • Jun 2011
            • 49

            #6
            Originally posted by ETHANol View Post
            See bedtools. Is your data RNA-seq data? If so you have to bed12 format to accommodate for gaps.
            I think bed12 file show the right thing. thanks. Can you explain what is the change in bed12 file comparing to bed.

            bed file:
            Code:
            chr1    14396   14517   DJG84KN1:219:D0R66ACXX:7:1213:7112:52613/2      1       +
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1303:12836:72771/2     1       +
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1110:13035:15193/2     1       -
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1213:3980:31932/2      1       -
            chr1    14411   14532   DJG84KN1:219:D0R66ACXX:7:1102:19850:62093/2     1       +
            chr1    14421   14542   DJG84KN1:219:D0R66ACXX:7:1308:18446:95141/2     1       +
            chr1    14452   14553   DJG84KN1:219:D0R66ACXX:7:1303:12836:72771/1     1       -
            chr1    14453   14554   DJG84KN1:219:D0R66ACXX:7:1213:7112:52613/1      1       -
            chr1    14460   14561   DJG84KN1:219:D0R66ACXX:7:1102:19850:62093/1     1       -
            chr1    14472   14593   DJG84KN1:219:D0R66ACXX:7:1202:6747:36105/2      3       +
            bed12 file:
            Code:
            chr1    14396   14517   DJG84KN1:219:D0R66ACXX:7:1213:7112:52613/2      1       +       14396   14517   255,0,0 1       121     0
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1303:12836:72771/2     1       +       14407   14528   255,0,0 1       121     0
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1110:13035:15193/2     1       -       14407   14528   255,0,0 1       121     0
            chr1    14407   14528   DJG84KN1:219:D0R66ACXX:7:1213:3980:31932/2      1       -       14407   14528   255,0,0 1       121     0
            chr1    14411   14532   DJG84KN1:219:D0R66ACXX:7:1102:19850:62093/2     1       +       14411   14532   255,0,0 1       121     0
            chr1    14421   14542   DJG84KN1:219:D0R66ACXX:7:1308:18446:95141/2     1       +       14421   14542   255,0,0 1       121     0
            chr1    14452   14553   DJG84KN1:219:D0R66ACXX:7:1303:12836:72771/1     1       -       14452   14553   255,0,0 1       101     0
            chr1    14453   14554   DJG84KN1:219:D0R66ACXX:7:1213:7112:52613/1      1       -       14453   14554   255,0,0 1       101     0
            chr1    14460   14561   DJG84KN1:219:D0R66ACXX:7:1102:19850:62093/1     1       -       14460   14561   255,0,0 1       101     0
            chr1    14472   14593   DJG84KN1:219:D0R66ACXX:7:1202:6747:36105/2      3       +       14472   14593   255,0,0 1       121     0
            Last edited by camelbbs; 09-17-2012, 11:50 AM.

            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
            37 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            41 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...