Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hagen
    Junior Member
    • Aug 2012
    • 7

    #1

    gff3-bed-bam for RNAseq

    Dear all,

    I have some splice junctions (in GFF3) that I ultimately want to convert to bam. I was thinking to convert first to bed myself and then to bam using bedToBam.
    To test the second step I grabbed a bed-example from teh UCSC browser (each line encodes TWO exons) and ran a little test on it, converting to bam and then back to bed. This results in information loss:

    nuvol:cufflinks htilgner$ cat test.bed
    chr22 1000 5000 cloneA 960 + 1000 5000 0 2 567,488, 0,3512
    chr22 2000 6000 cloneB 900 - 2000 6000 0 2 433,399, 0,3601
    nuvol:cufflinks htilgner$ bedToBam -i test.bed -g hg19.genome.file > test.bam
    nuvol:cufflinks htilgner$ bamToBed -i test.bam
    chr22 1000 5000 cloneA 255 +
    chr22 2000 6000 cloneB 255 -

    Do you know why ? More importantly, is there an appropriate way to encode a spliced read in bam format ? How would that work ? Alternatively, is there a way to convert gff3 to bam directly ?

    Thanks
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Given that the bedToBam program is general purpose, I'd be pretty surprised if it knew enough about what the various meta-information columns meant in order to store them in a meaningful way in BAM format. Spliced read are generally denoted with Ns in the CIGAR string.

    Comment

    • Hagen
      Junior Member
      • Aug 2012
      • 7

      #3
      Dear dpryan,

      thanks for your answer. Do you have a way to force the below 2 example read (that are spliced) into a bam file ?
      chr22 1000 5000 cloneA 960 + 1000 5000 0 2 567,488, 0,3512
      chr22 2000 6000 cloneB 900 - 2000 6000 0 2 433,399, 0,3601

      Best & thanks
      Last edited by Hagen; 08-20-2012, 08:09 AM.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Not off-hand, I've never needed such a file. It'd be easy enough to just write a conversion program in C that would parse the BED file for the exonic regions, grab the relevant sequence from a fasta file, and write everything to a BAM file. I haven't a clue why you would want such a file, but that would work.

        Comment

        • Hagen
          Junior Member
          • Aug 2012
          • 7

          #5
          OK, I get it now, I believe. My problem was that I hoped not to get into teh specific of sam/bam and simply convert ... will write the converter ...
          thanks for your help!

          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...