Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quality-, adapter- and RRBS-trimming with Trim Galore! fkrueger Bioinformatics 138 11-12-2020 04:58 PM
trim galore error JQL Bioinformatics 23 02-17-2015 12:21 PM
FastQC output: Do I trim these? wilson90 Bioinformatics 1 08-16-2013 01:01 AM
Do I need to run trim galore even if my reads are of good quality? genomics_search Bioinformatics 1 03-06-2013 12:30 PM
How to integrate Trim Galore in Galaxy? sachitad RNA Sequencing 2 10-19-2012 03:54 AM

Thread Tools
Old 10-09-2013, 05:55 AM   #1
Location: Urbana Illinois

Join Date: Jan 2013
Posts: 28
Default 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
@HWI-ST330:336274FACXX:3:1101:14593:1999 1:N:0:CTTGTA
@HWI-ST330:336274FACXX:3:1101:18911:1998 1:N:0:CTTGTA

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


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


@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!
shocker8786 is offline   Reply With Quote
Old 10-09-2013, 06:43 AM   #2
Location: Hong Kong

Join Date: Feb 2012
Posts: 21

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...
choishingwan is offline   Reply With Quote
Old 10-09-2013, 08:06 AM   #3
Senior Member
Location: Cambridge, UK

Join Date: Sep 2009
Posts: 625

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:

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
fkrueger is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 05:53 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO