aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-05-22 17:21:17 +0000
committerzsloan2023-05-22 17:21:17 +0000
commit7506b570548f93fe223030679c577b663c55d36f (patch)
tree55a452255fe8e2d10fae0992b6607a84584a2e62 /wqflask
parent88d518ed7ce05569b1204136fb314e7c101df8e1 (diff)
downloadgenenetwork2-7506b570548f93fe223030679c577b663c55d36f.tar.gz
Initialize exonStarts and exonEnds for mouse, since it currently throws an error if there's nothing in the GeneList table for the interval selected
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index d23ef7b1..f74060d2 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1473,6 +1473,8 @@ class DisplayMappingResults:
for gIndex, theGO in enumerate(self.geneCol):
geneNCBILink = 'http://www.ncbi.nlm.nih.gov/gene?term=%s'
if self.dataset.group.species == "mouse":
+ exonStarts = []
+ exonEnds = []
txStart = theGO["TxStart"]
txEnd = theGO["TxEnd"]
geneLength = (txEnd - txStart) * 1000.0