Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • shocker8786
    Member
    • Jan 2013
    • 28

    Trim Galore output issue

    I have both RRBS and RNAseq datasets that I'm trying to filter for quality and trim adaptors using Trim Galore. When I run it on the RRBS fq files using the --RRBS option, the resulting fq output looks fine:

    @HWI-ST330:336274FACXX:3:1101:13152:1997 1:N:0:CTTGTA
    NGGGTTGTTTTATGGAGAGCGGAGGGT
    +
    #4=DDDFDHHHHHJJIJIIGJJIIJJ?
    @HWI-ST330:336274FACXX:3:1101:14593:1999 1:N:0:CTTGTA
    NGGTAATTCGTTTTTTATAAGGCGAAT
    +
    #1=DFFFFHHHHHJJJJJJJHGIJJJJ
    @HWI-ST330:336274FACXX:3:1101:18911:1998 1:N:0:CTTGTA
    NGGGGTTTAGACGTAGTAGGTGTTTT
    +
    #1=DFDDFHHHHHGHJGHIJAFFHIJ

    But when I run it on the RNAseq samples without the --RRBS option, there are additional spaces in the fastq output:

    @DBRHHJN1:326:C233EACXX:1:1101:1305:1193 1:N:0:ATCACG
    CTTTNTGTGGCTCAGGATGGAGGTGGCCACATTGGCCAGCAACTCAGCCAGGCCGGGGCCTTCCTTCCCAGCAATTCGAGGCGCGGCCAGCGCCTGCCGC

    +
    ???D#2=ADDDDDIIIIEFIEEF+CEDE>DDEIIEDBED=DDCEBDD@CDDDCDDIAD>@?AAAAAAA?AA=??AAA?E?>5;>;>95;8<;;>>???>>

    @DBRHHJN1:326:C233EACXX:1:1101:1287:1222 1:N:0:ATCACG
    CTTGNAAATGGCGTCAAAGGTGGCCTTGGCGAAGTTGCCCAGGGTGGCAGTGCAGCCCCTGGCAGAGGTGTAGCAGTCATCAATTCCTGCCATCATCAGC

    +
    ?@@D#2=AFHH?FH<ECFHHHGGEEGEGH@D@)?DHI9?BCFGIHII=@?7A;7?>BB?ACCA=?(98,<C:C:5,53:@>>4:@::@@CB>@93>>:::

    @DBRHHJN1:326:C233EACXX:1:1101:1252:1244 1:N:0:ATCACG

    I've tried running it a few different ways, and discovered that I only get the output with added spaces when I don't use the --RRBS option. My question is how do I fix this issue? I don't want to use the --RRBS option with the RNAseq data, as it will remove an additional 2bp from the trimmed reads. Is there a way to prevent Trim Galore from adding these spaces? Or is there a way for me to remove the spaces from the output files? Thanks!
  • choishingwan
    Member
    • Feb 2012
    • 21

    #2
    The simplest way might be to use awk? (but will be slow)

    awk '{if(length($0)>=1)print $0}' input.fq
    something like that, I haven't tested the code though...

    Comment

    • fkrueger
      Senior Member
      • Sep 2009
      • 627

      #3
      This was a bug that had been introduced accidentally... If you get the latest version of Trim Galore it should be fine, sorry for the inconvenience caused. This is from the latest release notes:

      Code:
      10-09-13: Version 0.3.3 released
      
          Fixed a bug what was accidentally introduced which would add an additional empty line in single-end trimming mode

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Pathogen Surveillance with Advanced Genomic Tools
        by seqadmin




        The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
        03-24-2025, 11:48 AM
      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 03-20-2025, 05:03 AM
      0 responses
      41 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-19-2025, 07:27 AM
      0 responses
      51 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      38 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      193 views
      0 reactions
      Last Post seqadmin  
      Working...