about summary refs log tree commit diff
path: root/scripts/genotypes/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/genotypes/types.py')
-rw-r--r--scripts/genotypes/types.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/genotypes/types.py b/scripts/genotypes/types.py
index 472bb1b..077e90e 100644
--- a/scripts/genotypes/types.py
+++ b/scripts/genotypes/types.py
@@ -1,6 +1,6 @@
 """The datatypes this package will use."""
+from typing import Sequence, Optional
 from dataclasses import field, dataclass
-from typing import Union, Sequence, Optional
 
 
 @dataclass
@@ -34,12 +34,23 @@ class LineError:
 
 
 @dataclass(frozen=True)
-class LineDetails:
+class TransposedLineDetails:
     """Data type for processed line details"""
-    line_content: Sequence[Union[str, None]]
+    line_content: Sequence[str]
     geno_symbols: Sequence[str]
     line_header: str
     errors: Sequence[LineError]
+    is_markers_line: bool = False
+
+
+@dataclass(frozen=True)
+class UntransposedLineDetails:
+    """Data type for processed line details"""
+    line_content: Sequence[str]
+    geno_symbols: Sequence[str]
+    line_header: str
+    errors: Sequence[LineError]
+    marker: Optional[str] = None
 
 
 @dataclass(frozen=True)