diff options
author | zsloan | 2021-05-17 21:56:51 +0000 |
---|---|---|
committer | zsloan | 2021-05-17 21:56:51 +0000 |
commit | 624ece086d026da9150cd35b2404874ccf607b07 (patch) | |
tree | 50891acf4f2ad6f04fea057d696142880d99c098 /gn3/commands.py | |
parent | 7ed84670c0d13de38b578a4e4177b2529ff3fb40 (diff) | |
download | genenetwork3-624ece086d026da9150cd35b2404874ccf607b07.tar.gz |
Created compose_rqtl_command and generate_rqtl_command to create the actual command to be run from the command line; used the same pattern as for GEMMA for consistency
Diffstat (limited to 'gn3/commands.py')
-rw-r--r-- | gn3/commands.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gn3/commands.py b/gn3/commands.py index 4b0d62d..db32d1f 100644 --- a/gn3/commands.py +++ b/gn3/commands.py @@ -30,6 +30,13 @@ def compose_gemma_cmd(gemma_wrapper_cmd: str = "gemma-wrapper", cmd += " ".join([f"{arg}" for arg in gemma_args]) return cmd +def compose_rqtl_cmd(rqtl_wrapper_cmd: str, + rqtl_wrapper_kwargs: Dict) -> str: + """Compose a valid R/qtl command given the correct input""" + cmd = rqtl_wrapper_cmd + " " + " ".join( + [f"--{key} {val}" for key, val in rqtl_wrapper_kwargs.items()]) + + return cmd def queue_cmd(conn: Redis, job_queue: str, |