Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cartzo
    Junior Member
    • Apr 2020
    • 5

    #1

    Determining strandedness of .bam file (RSeQC)

    Hello There,

    I have recently begun analysis of some RNAseq data of Nicotiana benthamiana, under various pathogen type treatments. This dataset was acquired as part of a collaboration that me and my supervisor threw together in a hurry, so that we would have something to work on during the lockdown. As such, I lack a little basic information about the dataset, including strandedness.

    having aligned the paired-end illumina sequenced fastq files using HISAT2, sorted the resulting .sam files by name using samtools, and then converted them to .bam files; I attempted to determine if they were strand specific using the infer_experiment.py script of the RSeQC package. However, it gave me an unusual output:

    Code:
    This is PairEnd Data
    Fraction of reads failed to determine: 1.0000
    Fraction of reads explained by "1++,1--,2+-,2-+": 0.0000
    Fraction of reads explained by "1+-,1-+,2++,2--": 0.0000
    Initially, I thought this might be due to a problem with the .bed file I used, as the N. benthamiana annotation is not thorough, and the .bed file I used was converted from a .gff file, but other scripts of the RSeQC package that require .bed file worked fine with the one I provided.

    Looking at the data in IGV (see below) it seems to me that the data is not strand specific, and i'm happy to continue on this basis (unless someone here knows better and can let me know why i'm mistaken). but if anyone here who has experience using the RSeQC package can let me know why I might be getting this output from infer_experiment.py, i'd be very grateful.

  • cartzo
    Junior Member
    • Apr 2020
    • 5

    #2
    For anyone whom it may help, I have found a solution to my problem.

    I was mistaken in believing that RSeQC works entirely with a bed file converted from gff3 using the gff2bed tool of the BEDOPS package. this tool will convert a gff file to a six or nine column bed file. However, some tools in the RSeQC package require a comprehensive 12 column bed file.

    A python script for converting a gff3 file to a 12 column bed file, written by Vipin T Sreedharan of the Memorial Sloan Kettering cancer centre, can be found here: https://github.com/vipints/converter...d_converter.py

    Comment

    • Rashmiie
      Junior Member
      • Jun 2024
      • 2

      #3
      For new visitors on this thread, I have had the same experience as Cartzo with BEDOPS, it gave a 10 column bed file(BEDOPS output) that is not compatible with RSeQC. Also the script provided by Vipin doesn't work if you are using python3. I tried updating it to python3 by making the following changes to the code (1)replacing 'rU' (2) replacing 'Exception, erm:' with 'Exception as erm:'. The script runs, but I get an empty BED file.

      What finally worked for me is converting gff3 to genepred and genepred to bed using ucsc tools- https://hgdownload.soe.ucsc.edu/admi...macOSX.x86_64/

      Commands-
      gff3ToGenePred yeast.gff yeast.genePred

      genePredToBed yeast.genePred yeast.bed


      BEDOPS output :




      genePredToBed output:

      ​ Click image for larger version

Name:	Screenshot 2024-06-28 at 12.58.53 PM.png
Views:	324
Size:	443.7 KB
ID:	325875

      Comment

      • Rashmiie
        Junior Member
        • Jun 2024
        • 2

        #4
        For new visitors on this thread, I have had the same experience as Cartzo with BEDOPS, it gave a 10 column bed file(BEDOPS output) that is not compatible with RSeQC. Also the script provided by Vipin doesn't work if you are using python3. I tried updating it to python3 by making the following changes to the code (1)replacing 'rU' (2) replacing 'Exception, erm:' with 'Exception as erm:'. The script runs, but I get an empty BED file.

        What finally worked for me is converting gff3 to genepred and genepred to bed using ucsc tools- https://hgdownload.soe.ucsc.edu/admi...macOSX.x86_64/

        Commands-
        gff3ToGenePred yeast.gff yeast.genePred

        genePredToBed yeast.genePred yeast.bed


        BEDOPS output :




        genePredToBed output:

        ​ Click image for larger version

Name:	Screenshot 2024-06-28 at 12.58.53 PM.png
Views:	316
Size:	443.7 KB
ID:	325877

        Comment

        • surpcreep
          Junior Member
          • Jul 2024
          • 1

          #5
          Originally posted by Rashmiie View Post
          For new visitors on this thread, I have had the same experience as Cartzo with BEDOPS, it gave a 10 column bed file(BEDOPS output) that is not compatible with RSeQC. Also the script provided by Vipin doesn't work if you are using python3. I tried updating it to python3 by making the following changes to the code (1)replacing 'rU' (2) replacing 'Exception, erm:' with 'Exception as erm:'. The script runs, but I get an empty BED file.
          geometry dash subzero
          What finally worked for me is converting gff3 to genepred and genepred to bed using ucsc tools- https://hgdownload.soe.ucsc.edu/admi...macOSX.x86_64/

          Commands-
          gff3ToGenePred yeast.gff yeast.genePred

          genePredToBed yeast.genePred yeast.bed


          BEDOPS output :




          genePredToBed output:

          ​ Click image for larger version

Name:	Screenshot 2024-06-28 at 12.58.53 PM.png
Views:	316
Size:	443.7 KB
ID:	325877
          I have the same problem the command file provided by Vipin is not working. And am trying to upgrade it to python3 with for the code (1) replace 'rU' (2) replace 'Exception, erm:' with 'Exception as erm:'. The problem appears to persist but has been resolved.

          Comment

          • crazyhottommy
            Senior Member
            • Apr 2012
            • 187

            #6
            you can use this tool https://bmcbioinformatics.biomedcent...59-022-04572-7

            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, Yesterday, 11:13 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, Yesterday, 10:48 AM
            0 responses
            15 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            35 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Working...