ShortRead Error message: invalid character '
1
0
Entering edit mode
@laurenfitch-11575
Last seen 3.9 years ago

Hi, I am trying to read a series of FASTQ files into R with the ShortRead package. It reads the first four files fine but gives an error on the fifth:

> test <- readFastq(buddy.file.list[[5]])
Error: Input/Output
  file(s):
    /sbgenomics/project-files/_5_buddy_0001.fastq
  message: invalid character '

Is the invalid character the single quote? Or is it not specified in the error message? There are single quotes in all of my files, but this is the only one that isn't being read.

shortread fastq • 1.2k views
ADD COMMENT
0
Entering edit mode
@laurenfitch-11575
Last seen 3.9 years ago

The invalid character was a space. I was reading simulated FASTQs from PBSIM and it created some reads with spaces. Leaving this up in case it's helpful for anyone else.

ADD COMMENT
0
Entering edit mode

How did you fix the output fastq?

I am having similar problem with fastq generated from guppy_basecaller. Seems only recently that the generated fastq throws error with ShortRead.

ADD REPLY
0
Entering edit mode

fastq is such a simple format it seems odd that a program would generate invalid files. Maybe you've moved the file between computer operating systems in a way that has corrupted them? These files are plain text files, so if there is a problem you could in principle open it in any text editor, but the file could be too large for standard tools. It seems better to figure out where the problem is introduced.

What platform are you on? What specific message does ShortRead report?

ADD REPLY

Login before adding your answer.

Traffic: 642 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6