aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/heatmap.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-12 13:08:05 +0300
committerMuriithi Frederick Muriuki2021-08-12 13:08:05 +0300
commitd97e3141554c3a13a1ec163373b19b9552a79fb0 (patch)
tree6168e2b1a62f258af5bad45ad0913d3c8c24b924 /gn3/computations/heatmap.py
parent72ab476e5825c8c2b0d5102d6f1227ace8f7fa68 (diff)
downloadgenenetwork3-d97e3141554c3a13a1ec163373b19b9552a79fb0.tar.gz
Import missing definitions
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Import some missing definitions.
Diffstat (limited to 'gn3/computations/heatmap.py')
-rw-r--r--gn3/computations/heatmap.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gn3/computations/heatmap.py b/gn3/computations/heatmap.py
index 98ea26f..1b7dfb7 100644
--- a/gn3/computations/heatmap.py
+++ b/gn3/computations/heatmap.py
@@ -3,12 +3,15 @@ This module will contain functions to be used in computation of the data used to
generate various kinds of heatmaps.
"""
+from functools import reduce
+from typing import Any, Dict, Sequence
from gn3.computations.slink import slink
+from gn3.db.traits import retrieve_trait_data, retrieve_trait_info
from gn3.computations.correlations2 import compute_correlation
def export_trait_data(
- trait_data: dict, strainlist: Sequence[str], dtype: str="val",
- var_exists: bool=False, n_exists: bool=False):
+ trait_data: dict, strainlist: Sequence[str], dtype: str = "val",
+ var_exists: bool = False, n_exists: bool = False):
"""
Export data according to `strainlist`. Mostly used in calculating
correlations.