aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-19 03:45:49 +0300
committerBonfaceKilz2020-08-19 03:45:49 +0300
commit3aaa28ea762c496eeb84e09e45194e3fd2a51673 (patch)
treea572b34f4237fefd02eaba12bbe1aeac74d77497 /wqflask/base
parent9d5dff44fb4d07f926659dde0c6205bf12a1ca5b (diff)
downloadgenenetwork2-3aaa28ea762c496eeb84e09e45194e3fd2a51673.tar.gz
Make Python more idiomatic
Run `2to3-3.8 -f idioms -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms>
Diffstat (limited to 'wqflask/base')
-rw-r--r--wqflask/base/data_set.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index b0119b58..06e1c551 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -254,7 +254,7 @@ class Markers(object):
logger.debug("length of self.markers:", len(self.markers))
logger.debug("length of p_values:", len(p_values))
- if type(p_values) is list:
+ if isinstance(p_values, list):
# THIS IS only needed for the case when we are limiting the number of p-values calculated
# if len(self.markers) > len(p_values):
# self.markers = self.markers[:len(p_values)]
@@ -270,7 +270,7 @@ class Markers(object):
marker['lod_score'] = -math.log10(marker['p_value'])
# Using -log(p) for the LRS; need to ask Rob how he wants to get LRS from p-values
marker['lrs_value'] = -math.log10(marker['p_value']) * 4.61
- elif type(p_values) is dict:
+ elif isinstance(p_values, dict):
filtered_markers = []
for marker in self.markers:
#logger.debug("marker[name]", marker['name'])