Useful pipeline you have here ;)
Is your feature request related to a problem? Please describe.
When working on an NFS-mounted systsem, it seems like downloading sra and converting to fastq files is taking longer than needed or expected. In addition, IO becomes very slow on that NFS system to the point that it's noticable in other applications and while working on the command-line. My (lightly tested) hunch is that this happens when SRA files are converted to FASTQ as, this means reading and writing to disk with potentially many parallel processes. Most likely, you will not want to keep the SRA files anyway.
Describe the solution you'd like
I think this could be solved by using $TMPDIR with the snakemake tmpdir resource and/or shadow rules. However, you may have already tried this, and refrained from implementing due to other issues that occur.
If this would be relevant, it would maybe also make sense to couple the SRA and the FASTQ rules, so that the SRA file is only used internal to the rule, and can be kept on the temporary fileystem and be deleted when the rule successfully finishes. Downside is that you may have duplicated code, as the SRA download would be copied. On the other hand, this could also be implemented in a bash script, which then could be re-used.
Would this be worth considering (I'd be happy to supply a PR)?
Useful pipeline you have here ;)
Is your feature request related to a problem? Please describe.
When working on an NFS-mounted systsem, it seems like downloading sra and converting to fastq files is taking longer than needed or expected. In addition, IO becomes very slow on that NFS system to the point that it's noticable in other applications and while working on the command-line. My (lightly tested) hunch is that this happens when SRA files are converted to FASTQ as, this means reading and writing to disk with potentially many parallel processes. Most likely, you will not want to keep the SRA files anyway.
Describe the solution you'd like
I think this could be solved by using
$TMPDIRwith the snakemaketmpdirresource and/or shadow rules. However, you may have already tried this, and refrained from implementing due to other issues that occur.If this would be relevant, it would maybe also make sense to couple the SRA and the FASTQ rules, so that the SRA file is only used internal to the rule, and can be kept on the temporary fileystem and be deleted when the rule successfully finishes. Downside is that you may have duplicated code, as the SRA download would be copied. On the other hand, this could also be implemented in a bash script, which then could be re-used.
Would this be worth considering (I'd be happy to supply a PR)?