(name: str)
| 117 | |
| 118 | |
| 119 | def shell_tool_command(name: str) -> str | None: |
| 120 | resolved = command_path(name) |
| 121 | if resolved: |
| 122 | return name |
| 123 | module_fallbacks = { |
| 124 | "snakemake": "snakemake", |
| 125 | "multiqc": "multiqc", |
| 126 | "cutadapt": "cutadapt", |
| 127 | } |
| 128 | module_name = module_fallbacks.get(name) |
| 129 | if module_name and module_present(module_name): |
| 130 | return f"{sys.executable} -m {module_name}" |
| 131 | return None |
| 132 | |
| 133 | |
| 134 | def run_cmd(cmd: list[str], cwd: Path, timeout: int | None = None) -> dict[str, Any]: |
nothing calls this directly
no test coverage detected