aboutsummaryrefslogtreecommitdiff
path: root/gn3/heatmaps.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-09-22 08:36:11 +0300
committerFrederick Muriuki Muriithi2021-09-22 08:36:11 +0300
commit71cc35e5178904b512b9007e33be17a36f6656f2 (patch)
tree2d059b89aa30ce55d2cafe781915abc3ea31d948 /gn3/heatmaps.py
parentcd7f301688fd9780df1f842f8bd2b7602775ba1f (diff)
downloadgenenetwork3-71cc35e5178904b512b9007e33be17a36f6656f2.tar.gz
Fix typing issues
* Ignore some errors * Update typing definitions for some portions of code * Add missing imports
Diffstat (limited to 'gn3/heatmaps.py')
-rw-r--r--gn3/heatmaps.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gn3/heatmaps.py b/gn3/heatmaps.py
index 9d82fb2..45d0c22 100644
--- a/gn3/heatmaps.py
+++ b/gn3/heatmaps.py
@@ -7,9 +7,9 @@ from functools import reduce
from typing import Any, Dict, Sequence
import numpy as np
-import plotly.graph_objects as go
-import plotly.figure_factory as ff
-from plotly.subplots import make_subplots
+import plotly.graph_objects as go # type: ignore
+import plotly.figure_factory as ff # type: ignore
+from plotly.subplots import make_subplots # type: ignore
from gn3.settings import TMPDIR
from gn3.random import random_string
@@ -171,8 +171,6 @@ def build_heatmap(traits_names, conn: Any):
clustered = cluster_traits(exported_traits_data_list)
slinked = slink(clustered)
traits_order = compute_traits_order(slinked)
- ordered_traits_names = [
- traits[idx]["trait_fullname"] for idx in traits_order]
strains_and_values = retrieve_strains_and_values(
traits_order, strains, exported_traits_data_list)
traits_filename = "{}/traits_test_file_{}.txt".format(