aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/species.py
diff options
context:
space:
mode:
authorLei Yan2013-07-03 20:56:45 +0000
committerLei Yan2013-07-03 20:56:45 +0000
commit76ad4e6ae15f4d42ddd420cd14936c149aa0bb31 (patch)
tree7f82df4895e80788e5b9e9fb07b0d7adb97a0738 /wqflask/base/species.py
parentd95eff3f0410ec5cddd82398f6db0fffa5d9be0b (diff)
parent253df1a5adb060df3202de5b80a5065a3614e368 (diff)
downloadgenenetwork2-76ad4e6ae15f4d42ddd420cd14936c149aa0bb31.tar.gz
Merge /home/zas1024/gene
Diffstat (limited to 'wqflask/base/species.py')
-rw-r--r--wqflask/base/species.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/wqflask/base/species.py b/wqflask/base/species.py
index 191f4535..ebc2bfed 100644
--- a/wqflask/base/species.py
+++ b/wqflask/base/species.py
@@ -56,6 +56,7 @@ class Chromosomes(object):
InbredSet.Name = %s
Order by OrderId
""", self.dataset.group.name).fetchall()
+ print("group: ", self.dataset.group.name)
print("bike:", results)
for item in results:
@@ -68,9 +69,14 @@ class Chromosomes(object):
def set_mb_graph_interval(self):
"""Empirical megabase interval"""
+ if self.chromosomes:
+ self.mb_graph_interval = self.get_genome_mb_length()/(len(self.chromosomes)*12)
+ else:
+ self.mb_graph_interval = 1
+
#if self.chromosomes:
- assert self.chromosomes, "Have to add some code back in apparently to set it to 1"
- self.mb_graph_interval = self.get_genome_mb_length()/(len(self.chromosomes)*12)
+ #assert self.chromosomes, "Have to add some code back in apparently to set it to 1"
+ #self.mb_graph_interval = self.get_genome_mb_length()/(len(self.chromosomes)*12)
#else:
#self.mb_graph_interval = 1