Well, I do not know that readFastq accepts something other than a file ...
But if possible, for other functions you can use the pipe () R function to open a unix connection, then you can do this with a combination of unix and tail commands and some pipes.
For example, to get lines from 90 to 100, you use this:
head file.txt -n 100 | tail -n 10
So you can just read the file in chunks.
If you need to, you can always use these unix utilities to create a temporary file, and then read it with shortRead. This is a pain, but if it can only accept a file, at least it works.
nsheff
source share