gui.model.job_argv

gui.model.job_argv(argv)

The argument list that runs a spotregen command in a child process.

The child is the interpreter that runs the interface, so it is the same spotregen.

Parameters

Name Type Description Default
argv Sequence[str] The arguments from cli_argv. required

Returns

Name Type Description
list[str] list[str]: The interpreter, -m spotregen and the arguments.

Examples

from spotregen.gui.model import cli_argv, job_argv

print(job_argv(cli_argv("/r", "measures", options={"mutation_score": True}))[1:])
['-m', 'spotregen', '--root', '/r', 'measures', '--mutation-score']