aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/species.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/base/species.py b/wqflask/base/species.py
index ce646538..628bcc56 100644
--- a/wqflask/base/species.py
+++ b/wqflask/base/species.py
@@ -20,14 +20,15 @@ class TheSpecies:
self.chromosomes = Chromosomes(dataset=self.dataset)
+@dataclass
class IndChromosome:
- def __init__(self, name, length):
- self.name = name
- self.length = length
+ """Data related to IndChromosome"""
+ name: str
+ length: int
@property
def mb_length(self):
- """Chromosome length in megabases"""
+ """Chromosome length in mega-bases"""
return self.length / 1000000