aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/correlations.py
diff options
context:
space:
mode:
authorAlexander Kabui2021-06-20 09:04:55 +0300
committerAlexander Kabui2021-06-20 09:04:55 +0300
commit864f231bbdbe2c3b3c96b0158a15811ac7790c3f (patch)
treed0d0eee217c984bd72ecfacc0b131848fcb5b89d /gn3/computations/correlations.py
parentb566a8950864a373f95ae2914b862e9846297b2d (diff)
downloadgenenetwork3-864f231bbdbe2c3b3c96b0158a15811ac7790c3f.tar.gz
make requested changes to biweight
Diffstat (limited to 'gn3/computations/correlations.py')
-rw-r--r--gn3/computations/correlations.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 89d37fc..eae7ae4 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -7,7 +7,7 @@ from typing import Optional
from typing import Callable
import scipy.stats
-from gn3.computations.biweight import call_biweight_script
+from gn3.computations.biweight import calculate_biweight_corr
def map_shared_keys_to_values(target_sample_keys: List,
@@ -102,12 +102,11 @@ package :not packaged in guix
"""
try:
- results = call_biweight_script(x_val, y_val)
+ results = calculate_biweight_corr(x_val, y_val)
+ return results
except Exception as error:
raise error
- return results
-
def filter_shared_sample_keys(this_samplelist,
target_samplelist) -> Tuple[List, List]: