Unconfigured Ad

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

    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
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM
          • SEQadmin2
            From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
            by SEQadmin2


            Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


            The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
            ...
            06-02-2026, 10:05 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          34 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-09-2026, 11:58 AM
          0 responses
          97 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          117 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          112 views
          0 reactions
          Last Post SEQadmin2  
          Working...