aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-16 11:35:23 +0300
committerFrederick Muriuki Muriithi2021-09-16 11:35:23 +0300
commit78e37440844a0397d29135a8ba215e54fd92c86d (patch)
tree2a8d7726db3516c20bb9159c46c0875b158e2f42
parent347301c1bc60ba5036625364ee48a5d72eeb1186 (diff)
downloadgenenetwork3-78e37440844a0397d29135a8ba215e54fd92c86d.tar.gz
Add missing imports
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Add missing imports that are needed in the code.
-rw-r--r--gn3/heatmaps.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/gn3/heatmaps.py b/gn3/heatmaps.py
index 4349ee0..c48a2d3 100644
--- a/gn3/heatmaps.py
+++ b/gn3/heatmaps.py
@@ -5,15 +5,25 @@ generate various kinds of heatmaps.
from functools import reduce
from gn3.settings import TMPDIR
+import plotly.graph_objects as go
+from gn3.random import random_string
from typing import Any, Dict, Sequence
from gn3.computations.slink import slink
-from gn3.computations.qtlreaper import generate_traits_file
+from plotly.subplots import make_subplots
from gn3.computations.correlations2 import compute_correlation
-from gn3.db.genotypes import build_genotype_file, load_genotype_samples
+from gn3.db.genotypes import (
+ build_genotype_file, load_genotype_samples, parse_genotype_file)
from gn3.db.traits import (
retrieve_trait_data,
retrieve_trait_info,
generate_traits_filename)
+from gn3.computations.qtlreaper import (
+ run_reaper,
+ generate_traits_file,
+ chromosome_sorter_key_fn,
+ parse_reaper_main_results,
+ organise_reaper_main_results,
+ parse_reaper_permutation_results)
def export_trait_data(
trait_data: dict, strainlist: Sequence[str], dtype: str = "val",