aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-05-15 01:25:02 +0300
committerAlexander Kabui2021-05-15 01:25:02 +0300
commit72dbf91c9f053aa1eb5fa7fc52103b4b8ac71a58 (patch)
treed5dd5bf9233c326166177981f458b2e33bb5b17f
parentc69b11cffba7547d65ac9812b0118cddad91be0d (diff)
downloadgenenetwork3-72dbf91c9f053aa1eb5fa7fc52103b4b8ac71a58.tar.gz
resolve merge conflict
-rw-r--r--gn3/computations/correlations.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py
index 857ceb0..25dd26d 100644
--- a/gn3/computations/correlations.py
+++ b/gn3/computations/correlations.py
@@ -89,8 +89,6 @@ def compute_sample_r_correlation(trait_name, corr_method, trait_vals,
target_values=sanitized_target_vals,
corr_method=corr_method)
- # xtodo check if corr_coefficient is None
- # should use numpy.isNan scipy.isNan is deprecated
if corr_coeffient is not None:
return (trait_name, corr_coeffient, p_value, num_overlap)
return None
@@ -187,7 +185,8 @@ def benchmark_compute_all_sample(this_trait,
}
corr_results.append({trait_name: corr_result})
return corr_results
-
+
+
def tissue_correlation_for_trait(
primary_tissue_vals: List,
target_tissues_values: List,
@@ -298,8 +297,6 @@ def map_to_mouse_gene_id(conn, species: Optional[str],
gene_id: Optional[str]) -> Optional[str]:
"""Given a species which is not mouse map the gene_id\
to respective mouse gene id"""
- # AK:xtodo move the code for checking nullity out of thing functions bug
- # while method for string
if None in (species, gene_id):
return None
if species == "mouse":