Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • steepale
    Junior Member
    • Aug 2013
    • 2

    Additional question regarding BBtools

    Hello,
    This thread helped me with an issue I'm dealing with only I've become stuck and seek some advice.

    I am trying to use BBMap or BBTools to fix what might be either an incorrectly interleaved file or a file that has reads formatted as single-end but really contains a collection of paired and single end reads.

    I have interleaved some paired-end RNAseq Illumina reads in order to run them through a program called 'sortmerna' to remove rRNA from my reads. Here is a testformat.sh on the interleaved input file.


    Code:
    /mnt/home/steepale/Apps/bbmap/testformat.sh ./data/017798-1_1_AGTGAG_L001_interleaved_001_100K.fastq
    sanger	fastq	raw	interleaved	125bp

    If BBTools can provide this ability (filter out rRNA), I would appreciate any advice. The output file seems to either be incorrectly interleaved or are just in single end format. Here is a testformat.sh of the output file I am interested in.


    Code:
    /mnt/home/steepale/Apps/bbmap/testformat.sh ./data/017798-1_1_AGTGAG_L001_norRNA_001_100K.fastq
    -1	fastq	raw	single-ended

    I would ultimately like to the reads from this output file and separate them by their forward and reverse reads into two files; essentially I want to map them with tophat.

    Is anyone familiar with BBTools and how to fix such an issue? I've hit a roadblock.
    Last edited by steepale; 10-06-2016, 09:05 AM.
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    I have moved your question to a new thread to make it visible.

    Solution for your problem can come from BBTools themselves. There is a program called bbsplit.sh that you can use with your original data (R1/R2 files). Provide this program with rDNA repeat sequence (provided one is available for your genome). BBsplit can then separate any reads that align to this in one file where as the rest will go to a different file. BBMap is also splice aware so you could use it to align your RNAseq data (should perform better than tophat).

    You can use reformat.sh from BBMap to see if the reads are correctly interleaved

    Code:
    $ reformat.sh in=reads.fastq verifypairing
    then optionally de-interleave them

    Code:
    $ reformat.sh in=reads.fastq out1=r1.fastq out2=r2.fastq
    Last edited by GenoMax; 10-06-2016, 09:22 AM.

    Comment

    • steepale
      Junior Member
      • Aug 2013
      • 2

      #3
      Here's some additional advice which might add to the convo.

      Also, thanks GenoMax, I've located Chicken-specific rDNA clusters and am lifting them over to the correct genome build.

      Assuming the reads stayed in the same order but sortmerna just removed some of them, you can use repair.sh like this:

      repair.sh in=017798-1_1_AGTGAG_L001_norRNA_001_100K.fastq out1=r1.fq out2=r2.fq outs=single.fq fint
      "
      If the reads were reordered you'd need the "repair" flag instead of "fint" but they probably were not. The "repair" flag will always work, it just uses more memory than "fint".

      However, you can avoid this problem in the first place if you use BBDuk for kmer-matching to remove rRNAs, if you have the ribosomal sequence, since BBDuk will keep pairs together:

      bbduk.sh in=interleaved.fq out1=filtered1.fq out2=filtered2.fq outm1=rrna1.fq out2=rrna2.fq ref=ribosomes.fa k=31

      You can also use a bulk set of ribosomal sequences like Silva, but using the species' specific ribosomal sequences is much more precise."

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        I would not bother doing any liftover since the sequence of rDNA is unlikely to change between builds.

        Use one copy of the full rDNA repeat (don't bother with multiple copies since those are just tandem repeats in most organisms) with whichever tool (bbduk or bbsplit) that you choose to use.

        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-20-2026, 11:10 AM
        0 responses
        18 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        32 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        29 views
        0 reactions
        Last Post SEQadmin2  
        Working...