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.py69
1 files changed, 0 insertions, 69 deletions
diff --git a/scripts/genotypes/types.py b/scripts/genotypes/types.py
deleted file mode 100644
index d765fe5..0000000
--- a/scripts/genotypes/types.py
+++ /dev/null
@@ -1,69 +0,0 @@
-"""The datatypes this package will use."""
-from typing import Sequence, Optional
-from dataclasses import field, dataclass
-
-
-@dataclass
-class DotGenoFields:# Still necessary??
-    """Custom .geno file format values"""
-    name: str
-    mat: str
-    pat: str
-    het: str
-    type: Optional[str] = None
-    unk: Optional[str] = None
-
-
-@dataclass(frozen=True)
-class FieldsIdentity:
-    """Data type for identity of the fields."""
-    marker: str
-    chromosome: str
-    genetic_distance: str # cM
-    physical_distance: str # Mb
-    samples: Sequence[str]
-
-
-@dataclass
-class LineError:
-    """An error in a specific line of the genotype file."""
-    row_header: str
-    column_header: str
-    message: str
-    line: Sequence[str]
-
-
-@dataclass(frozen=True)
-class TransposedLineDetails:
-    """Data type for processed line details"""
-    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)
-class FileStats:# pylint: disable=[too-many-instance-attributes]
-    """Custom file statistics."""
-    total_lines: int
-    data_lines: int
-    geno_symbols: Sequence[str]
-
-    comment_lines: int = 0
-    blank_lines: int = 0
-    dot_geno_lines: int = 0
-    dot_geno_fields: Optional[DotGenoFields] = None
-    samples_list: Sequence[str] = field(default_factory=tuple)
-    markers_list: Sequence[str] = field(default_factory=tuple)
-    errors: Sequence[LineError] = field(default_factory=tuple)