Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy.tools.expressions package
- galaxy.tools.expressions.do_eval(expression: str, jobinput: CWLObjectType, context: CWLOutputType | None = None, sandbox_command: Sequence[str] | None = None)[source]
- galaxy.tools.expressions.register() None[source]
Install the sandboxed engine as the process-wide
cwl_utilsJS engine.Idempotent and thread-safe. Call before any expression is evaluated so no code path falls back to the unsafe Node
vmengine.
- galaxy.tools.expressions.resolve_isolation_command(setting: str) tuple[str, ...] | None[source]
Resolve the
expression_evaluation_isolation_commandsetting to a wrapper.empty ->
None(ordinary worker subprocess)"bubblewrap"/"bwrap"-> the built-in bubblewrap command, but only on Linux withbwrapon PATH; otherwiseNone(ordinary worker subprocess) with a one-time warning, so a macOS dev box or a host without bubblewrap degrades cleanlyanything else -> the value parsed as a literal command prefix, used as-is
Cached so the PATH lookup and any warning happen once per distinct setting.
- galaxy.tools.expressions.write_evalute_script(in_directory)[source]
Responsible for writing the script that evaluates expressions in Galaxy jobs.