blob: 98941ce5084da7ea3aca1e1ef839f77270bf29e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|