diff options
author | Muriithi Frederick Muriuki | 2021-08-12 13:08:05 +0300 |
---|---|---|
committer | Muriithi Frederick Muriuki | 2021-08-12 13:08:05 +0300 |
commit | d97e3141554c3a13a1ec163373b19b9552a79fb0 (patch) | |
tree | 6168e2b1a62f258af5bad45ad0913d3c8c24b924 | |
parent | 72ab476e5825c8c2b0d5102d6f1227ace8f7fa68 (diff) | |
download | genenetwork3-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.
-rw-r--r-- | gn3/computations/heatmap.py | 7 |
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. |