aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-11-03 15:18:25 -0600
committerzsloan2020-11-03 15:18:25 -0600
commit5e08316b491a6225eddbc27cfdd799cff1bc0283 (patch)
tree878dae129bcf60e1d16465c39a365f658dc55702 /wqflask
parentad716823091959a5332173a0fd2a040c969d2712 (diff)
downloadgenenetwork2-5e08316b491a6225eddbc27cfdd799cff1bc0283.tar.gz
Fixed a sort used when doing the haplotype analysis to be compatible with Python 3
* wqflask/wqflask/marker_regression/display_mapping_results.py - The arguments for sort are different in Python 3, so it was changed to be compatible
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 7e43f6bd..b5686b70 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1460,7 +1460,7 @@ class DisplayMappingResults(object):
else:
continue
- smd.sort(lambda A, B: cmp(A.value, B.value))
+ smd.sort(key = lambda A: A.value)
smd.reverse()
samplelist = list(self.genotype.prgy)