Ethan Everett Hetrick
04/10/2026, 5:06 PMMatthias De Smet
04/10/2026, 5:19 PMMatthias De Smet
04/10/2026, 5:19 PMEthan Everett Hetrick
04/10/2026, 6:22 PMMatthias De Smet
04/10/2026, 6:39 PMEthan Everett Hetrick
04/10/2026, 6:43 PMMatthias De Smet
04/10/2026, 6:45 PMEthan Everett Hetrick
04/10/2026, 6:47 PMThomas Danhorn
04/21/2026, 6:07 AMprocess.beforeScript directive, but I'm not sure the files would be staged when that is invoked, and it runs outside the container, with only OS tools available, so I don't think you can use that to e.g. compress the staged files.)
Another option (abandoning your premise of not touching existing modules) might be to "patch" the nf-core fastp module so either accepts uncompressed input or runs the gzip command on the uncompressed file(s) (with the decision based on file name extension or output from file command). If you are developing a pipeline, that might be the most efficient way of dealing with this (at least until changes to the module break your patch ...). If your patch works well, could be universally useful (I think uncompressed input would be), and does not significantly increase runtime or long-term maintenance cost, you could propose to incorporate it into the module upstream.