Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • SylvainL
    Senior Member
    • Feb 2012
    • 180

    Bedtools with spliced junctions reads

    Hi all,

    I am trying STAR to analyze my RNAseq and it seems that, when a read is on an exon-exon junction, STAR fills up the read with N (then it increases the size of the read). My problem is when I want to use genomeCoverageBed to get the per base coverage, the output is a lot of reads in the different introns.

    Do you know if there is a way to change the output of STAR (I didn't see anything but maybe I went too fast on the manual), like splitting the read into two reads and for each of them the starting and ending positions?

    Thanks in advance.

    S.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Note the -split option.

    Comment

    • SylvainL
      Senior Member
      • Feb 2012
      • 180

      #3
      Thanks, I don't know why, I was focusing on the STAR output... Indeed, genomeCoverageBed has the option itself... I will test it.

      Another stupid (probably) question (but since now, I start doubting about my pipeline). When I use intersectBed, it will take the starting point of the mapped read, no? So, in this case, there is no problem with the gapped alignments? Meaning, then if I use the -split option, it may count twice the reads, no? Or I'm totally wrong?
      Last edited by SylvainL; 03-13-2015, 05:13 AM.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Alignments in a BAM file describe intervals, not just single points, so it'll take the whole thing. Note again the -split command, which should be present for any bedtools command that accepts BAM files.

        Comment

        • SylvainL
          Senior Member
          • Feb 2012
          • 180

          #5
          Ok, so I missunderstood. Then, you advice me to use -split option as well for intersectBed...

          I quickly did a test for genomeCoverageBed using -split option (I want to generate genomic bedgraphs) and it still seems to not split the gapped reads... I'm getting lost (sic)

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Well, you can use the -split option anytime you're dealing with spliced alignments, since you don't usually care if the spliced portion happens to overlap something (thereby increasing coverage there). If bedtools isn't handling spliced alignments correctly then that's a bug. A better question is what you're trying to achieve and if there's a simpler way.

            Comment

            • SylvainL
              Senior Member
              • Feb 2012
              • 180

              #7
              Ok,

              I am using my own gene model. I made a bed files with the regions of interest.

              I want to do 2 things:
              - get the item counts (considering as well the gapped reads but only once)
              - get the genome coverage (per base) to allow the reasearcher to have a fast look on IGV

              Until now, I was using
              bamToBed -i *.bam | intersectBed -a region_of_interest.bed -b stdin -c > counts to get the first one
              and
              genomeCoverageBed -ibam *.bam-bg -strand + -g ${Refname}_chromInfo.txt > bedgraph_plus

              I changed the second by genomeCoverageBed -ibam *.bam-bg -strand + -split -g ${Refname}_chromInfo.txt > bedgraph_plus

              Hope I'm clear enough

              Comment

              • SylvainL
                Senior Member
                • Feb 2012
                • 180

                #8
                I'm thinking about one more thing. I'm generating the bam file directly from STAR. Can it be a problem?

                Comment

                • dpryan
                  Devon Ryan
                  • Jul 2011
                  • 3478

                  #9
                  Generating the BAM file from STAR is fine (STAR isn't the cause of any of your problems).

                  For the counts, is there a reason you're not just using featureCounts? Granted, it takes a GTF file rather than a BAM file, but the conversion is simple enough and you can use that to double check intersectBed (since featureCounts is designed around RNAseq).

                  Anyway, I would suspect that adding -split to what you have would cause things to function as they should, but perhaps there's a bug in bedtools somewhere.

                  Comment

                  • SylvainL
                    Senior Member
                    • Feb 2012
                    • 180

                    #10
                    No particular reason to not use featureCounts. I will have a look...

                    I am using bedtools version v2.14.2. Maybe I should update it...

                    Comment

                    • dpryan
                      Devon Ryan
                      • Jul 2011
                      • 3478

                      #11
                      Highly recommended

                      Comment

                      • SylvainL
                        Senior Member
                        • Feb 2012
                        • 180

                        #12


                        Updating bedtools fixed the problem !!!

                        Thanks a lot dpryan

                        Comment

                        Latest Articles

                        Collapse

                        • 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
                        • SEQadmin2
                          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                          by SEQadmin2



                          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                          ...
                          07-09-2026, 11:10 AM
                        • SEQadmin2
                          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                          by SEQadmin2



                          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                          07-08-2026, 05:17 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by SEQadmin2, 07-24-2026, 12:17 PM
                        0 responses
                        31 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-23-2026, 11:41 AM
                        0 responses
                        23 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-20-2026, 11:10 AM
                        0 responses
                        215 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, 07-13-2026, 10:26 AM
                        0 responses
                        79 views
                        0 reactions
                        Last Post SEQadmin2  
                        Working...