aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/species.py
diff options
context:
space:
mode:
authorZachary Sloan2012-12-18 17:15:09 -0600
committerZachary Sloan2012-12-18 17:15:09 -0600
commitdaea7eb0eb4eef445140275522703e7e2214154b (patch)
tree7290ce8e531fd26170af9b72d577170649de2d95 /wqflask/base/species.py
parenta0ab498f670a674b96e6f10064e787fb995403ac (diff)
downloadgenenetwork2-daea7eb0eb4eef445140275522703e7e2214154b.tar.gz
Created new file species.py and species class object TheSpecies
Converted html for the mapping tabs to bootstrap and redid html inside of the Interval Mapping tab Added text input for # of permutation tests and bootstrap tests
Diffstat (limited to 'wqflask/base/species.py')
-rw-r--r--wqflask/base/species.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/wqflask/base/species.py b/wqflask/base/species.py
new file mode 100644
index 00000000..98941ce5
--- /dev/null
+++ b/wqflask/base/species.py
@@ -0,0 +1,16 @@
+from __future__ import print_function, division
+
+
+class TheSpecies(object):
+ def __init__(self, dataset):
+ self.dataset = dataset
+
+ @property
+ def chromosomes(self):
+ chromosomes = [("All", -1)]
+
+ for counter, genotype in enumerate(self.dataset.group.genotype):
+ if len(genotype) > 1:
+ chromosomes.append((genotype.name, counter))
+
+ return chromosomes