aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-06-20 11:17:11 +0300
committerFrederick Muriuki Muriithi2022-06-20 11:17:11 +0300
commit7f66bb029322a06b52359abf8836e158afaa6755 (patch)
tree573566c634552d345f166eb7cdf4834c43b434a4 /gn3
parent4d0d77ad005f0832a14c4bc050fad77ec727d476 (diff)
downloadgenenetwork3-7f66bb029322a06b52359abf8836e158afaa6755.tar.gz
Restrict partial correlation method choices
- Have "Pearson's r" and "Spearman's rho" as the only valid choices for the partial correlations
Diffstat (limited to 'gn3')
-rw-r--r--gn3/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/commands.py b/gn3/commands.py
index 41418b0..0a74b7d 100644
--- a/gn3/commands.py
+++ b/gn3/commands.py
@@ -69,7 +69,7 @@ def compose_pcorrs_command(
"""Compose the command to run partias correlations"""
prefix_cmd = (
f"{sys.executable}", "-m", "scripts.partial_correlations",
- primary_trait, ",".join(control_traits), f'"{method}"')
+ primary_trait, ",".join(control_traits), method)
if (
kwargs.get("target_database") is not None
and kwargs.get("target_traits") is None):