From a897ceca02b78a9426652ac3092c79278cdc681c Mon Sep 17 00:00:00 2001 From: pi coding agent Date: Thu, 22 Oct 2026 18:59:33 +0000 Subject: Move scripts into the uploader package Move the top-level `scripts` package to `uploader/scripts` so that it becomes the `uploader.scripts` package. All files are moved unchanged; references are updated in a follow-up commit. --- scripts/genotypes/types.py | 69 ---------------------------------------------- 1 file changed, 69 deletions(-) delete mode 100644 scripts/genotypes/types.py (limited to 'scripts/genotypes/types.py') 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) -- cgit 1.4.1