Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is possible to rescue the reads trimmet out with Trimmomatic?

    Hello to everyone, i'm new of this forum so i will apologize if could be a thread for this argument (i searched but i can't find it ).
    Here is my question,
    using Trimmomatic v0.10.1 is possible to rescue all that reads that have been trimmed out by the filteres( for example AVGQUAL)?
    if yes, could you tell me how?
    or if it's not possible could you give me some advice about other programs that can perform that kind of task?
    thank you all for the help

    ciao a tutti!

  • #2
    BBDuk will do that. For example, if you want to remove phiX reads, and reads with average quality below 10:

    bbduk.sh ref=phix.fasta k=31 maq=10 in=reads.fq out=good.fq outm=bad.fq

    Passing reads go to out, and failing reads go to outm. I'm not sure whether you can do this with Trimmomatic; the manual seems to indicate that you can save pairs where one fails and the other doesn't, but does not seem to mention a way to catch all filtered reads.

    Comment


    • #3
      As Brian implied, Trimmomatic will separate the reads into R1_paired, R2_paired, R1_unpaired (e.g., R1 reads that no longer have an R2 mate) and R2_unpaired. Failed reads are thrown away.

      I don't use BBDuk -- too lazy to switch from Trimmomatic -- but I think that Brian's example will only produce two files -- one when *both* pairs pass the given parameters (in this case no-phiX, avg quality >= 10) and another file that contains pairs when *either* of the pairs fails. It is also possible to set up BBDuk to output 4 files ala Trimmomatic.

      However while the Trimmomatic and BBDuk "pass" files should be effectively the same (given algorithmic differences) the "fail" files will be different with Trimmomatic only having single reads and BBDuk having paired reads.

      This is a long winded post that says, yes, use BBDuk if you really want all of the failed reads with all of their warts.

      Comment


      • #4
        Originally posted by westerman View Post
        ...I think that Brian's example will only produce two files -- one when *both* pairs pass the given parameters (in this case no-phiX, avg quality >= 10) and another file that contains pairs when *either* of the pairs fails.
        That's true, though note that there is also a "reib" ("removeifeitherbad") flag which will switch the behavior between removing pairs if either fails, and removing only if both fail.

        And it's also true that there's not much point in storing reads that fail quality metrics (unless you want to do some kind of QC analysis on them); it makes more sense when used for kmer filter.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Recent Developments in Metagenomics
          by seqadmin





          Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
          09-23-2024, 06:35 AM
        • seqadmin
          Understanding Genetic Influence on Infectious Disease
          by seqadmin




          During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

          Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
          09-09-2024, 10:59 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 10-02-2024, 04:51 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-01-2024, 07:10 AM
        0 responses
        21 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-30-2024, 08:33 AM
        0 responses
        25 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-26-2024, 12:57 PM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Working...
        X