diff options
author | Frederick Muriuki Muriithi | 2021-09-22 08:36:11 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-09-22 08:36:11 +0300 |
commit | 71cc35e5178904b512b9007e33be17a36f6656f2 (patch) | |
tree | 2d059b89aa30ce55d2cafe781915abc3ea31d948 /gn3/heatmaps.py | |
parent | cd7f301688fd9780df1f842f8bd2b7602775ba1f (diff) | |
download | genenetwork3-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.py | 8 |
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( |