Sorry, I'm a bit confused by the doc (or lack thereof), is that one correct way one has to read a fastq file, say if I want to read N reads (I could use while next !== nothing too) ? I think adding an example in the docs would be good.
reader = FASTQ.Reader(GzipDecompressorStream(open(file)) ; copy=false)
r = first(reader)
for k = 1:N
# do something here
next = iterate(reader)
isnothing(next) && break
r = next[1]
end
close(reader)
Also the old read!(reader, r) doesn't crash but does nothing, it should be an error now, no ?
Sorry, I'm a bit confused by the doc (or lack thereof), is that one correct way one has to read a fastq file, say if I want to read N reads (I could use
while next !== nothingtoo) ? I think adding an example in the docs would be good.Also the old
read!(reader, r)doesn't crash but does nothing, it should be an error now, no ?