allele profiling partial matching works

This commit is contained in:
2025-01-09 21:44:28 +00:00
parent e60dba936c
commit 03fbbe542e
9 changed files with 59246 additions and 48 deletions

View File

@@ -1,13 +1,21 @@
from dataclasses import dataclass
from typing import Mapping, Sequence
from typing import Mapping, Sequence, Union
@dataclass(frozen=True)
class PartialAllelicMatchProfile:
percent_identity: float
mismatches: int
bitscore: float
gaps: int
@dataclass(frozen=True)
class Allele:
allele_loci: str
allele_variant: str
partial_match_profile: Union[None, PartialAllelicMatchProfile]
@dataclass(frozen=True)
class MLSTProfile:
alleles: Mapping[str, Sequence[Allele]]
sequence_type: str
clonal_complex: str
clonal_complex: str