Ben
08/19/2025, 11:22 AMparams.py module which is part of the tool code base inside the docker image. I tried adding a modified params.py to the /bin directory in the pipeline and adding this path to the PYTHONPATH variable. I checked that PYTHONPATH is correctly set and that params.py is accessible inside the nextflow module. However, it does not seem to work, and the module (and the parameters) are still loaded from the original file. Any ideas why that is? Any hints how to deal with tools that hard-code parameters (except building custom docker images)?Arthur
08/20/2025, 12:37 AMPYTHONPATH from outside the docker image probably isn’t propagated inside the docker image, and neither should it really be.
Depending on how this tool is designed/packaged, then simply putting a custom params.py on the PYTHONPATH ahead of the embedded one wouldn’t work anyway, and even if it did it’s a horribly hacky way of managing it.
I would either ask them to change how those variables are set, fork and modify the tool, or if you are already the tool author, make the params you need to override configurable from the command line.Thomas Danhorn
08/20/2025, 1:42 AMparams.py in the image. But of course, as Arthur said, the longer term goal should be to have the authors fix how they pass parameters -- that should be done either with command line parameters or in a config file that you can pass to the tool via a command line parameter.Ben
08/20/2025, 8:11 AM