diff options
author | Frederick Muriuki Muriithi | 2022-06-28 09:32:14 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-06-28 09:32:14 +0300 |
commit | d8d590cbc0a427c2f508c66bc91cd8af97aba606 (patch) | |
tree | c35b06930f37a208d90f0996a66434ea4137e3eb /scripts | |
parent | b4e81dd5cba130f0a2f47771bb2fd4d289ef745d (diff) | |
download | genenetwork3-d8d590cbc0a427c2f508c66bc91cd8af97aba606.tar.gz |
Parse the method from UI before passing it to external process
To reduce the chances of the system failing due to the external process being
launched with the wrong parameters, add a parsing stage that converts the
method from the UI into a form acceptable by the CLI script.
* gn3/commands.py: parse the method from UI
* scripts/partial_correlations.py: simplify the acceptable methods
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/partial_correlations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/partial_correlations.py b/scripts/partial_correlations.py index d28a17a..1fbab78 100644 --- a/scripts/partial_correlations.py +++ b/scripts/partial_correlations.py @@ -107,7 +107,7 @@ def process_cli_arguments(): "method", help="The correlation method to use", type=str, - choices=("Pearson's r", "Spearman's rho")) + choices=("pearsons", "spearmans")) against_db_parser(against_traits_parser( parser.add_subparsers( title="subcommands", |