aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/partial_correlations.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index fce6ad2..8a00931 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -148,7 +148,9 @@ def tissue_correlation(
assert method in method_fns.keys(), (
"Method must be one of: {}".format(",".join(method_fns.keys())))
- return method_fns[method](primary_trait_values, target_trait_values)
+ return tuple(
+ round(n, 10) for n in
+ method_fns[method](primary_trait_values, target_trait_values))
def batch_computed_tissue_correlation(
primary_trait_values: Tuple[float, ...], target_traits_dict: dict,