Thanks for the script. It seems to work, though I am getting an error after a few minutes.
AS the fastq files is zipped, this is the command I'm using:
python SplitReads.py. fastq.gz 10 3
After a few minutes I am getting a chunk size massage
chunk_size: 3436054
But than the script stops without any errors, but only with the traceback massage:
Traceback (most recent call last):
File "SplitFastqFile.py", line 61, in <module>
fqsplit(fq, nchunks, nreps)
File "SplitFastqFile.py", line 49, in fqsplit
for i, fqr in zip(ints, fqiter(fq)):
File "SplitFastqFile.py", line 24, in fqiter
with xopen(fq) as fh:
Is it a memory problem? I hope you can help
Thanks, Assa