Changed fastq-dump --split-files to --split-3 and added logic to handle the files which --split-3 produces, also removed the use of --gzip since it is deprecated and can lead to corrupted gz files, it does chuck out unpaired reads so if you wish to add some handling for that it could be a good idea.
Much slower unfortunately but that's the price for it actually working...
Changed fastq-dump --split-files to --split-3 and added logic to handle the files which --split-3 produces, also removed the use of --gzip since it is deprecated and can lead to corrupted gz files, it does chuck out unpaired reads so if you wish to add some handling for that it could be a good idea.
Much slower unfortunately but that's the price for it actually working...