From d97e3141554c3a13a1ec163373b19b9552a79fb0 Mon Sep 17 00:00:00 2001 From: Muriithi Frederick Muriuki Date: Thu, 12 Aug 2021 13:08:05 +0300 Subject: Import missing definitions Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Import some missing definitions. --- gn3/computations/heatmap.py | 7 +++++-- 1 file 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. -- cgit v1.2.3