Arthur
11/05/2026, 12:40 AMMatthias De Smet
11/05/2026, 4:53 AMArthur
11/05/2026, 4:54 AMMatthias De Smet
11/05/2026, 5:33 AMenv {
// Set TMPDIR for all modules
TMPDIR = "\$PWD"
}
Goes into your modules.configMatthias De Smet
11/05/2026, 5:35 AMArthur
11/05/2026, 5:36 AMnf-core module for which you can override behaviour, but only by an env var, and it needs to be set dynamically per-sample. I wanted to try and avoid patching the module, but I think maybe I can’tMatthias De Smet
11/05/2026, 5:37 AMMatthias De Smet
11/05/2026, 5:38 AMRam
11/05/2026, 7:30 AMbeforeScript directive?Mahesh Binzer-Panchal
11/05/2026, 7:45 AMbeforeScript as that's executed outside the container.pontus
11/05/2026, 2:26 PMbeforeScript works fine for running something on your system. If it’s for a module/pipeline, though - it’s wrong. That’s because it’s something commonly needed to deal with locally (e.g. for acquiring a container runtime, or whatnot) and can be expected to be overwritten.Mahesh Binzer-Panchal
11/06/2026, 7:37 AMpontus
11/06/2026, 7:38 AMmodule load apptainer is required at many HPC sites.Mahesh Binzer-Panchal
11/06/2026, 7:42 AMbeforeScript there. However given it’s a custom config we would just have to include whatever was in the config beforeScript as well as whatever env we wanted to set as well right?pontus
11/06/2026, 7:44 AMpontus
11/06/2026, 7:44 AMpontus
11/06/2026, 7:45 AMMahesh Binzer-Panchal
11/06/2026, 7:45 AMArthur
11/06/2026, 7:45 AMArthur
11/06/2026, 7:45 AMpontus
11/06/2026, 7:47 AMArthur
11/06/2026, 7:47 AM