mecfs_bio.build_system.task.genome_reference_harmonization.outcomes
Named outcomes of genome-reference harmonization: allele actions, palindrome decisions and drop reasons.
Each Literal alias is what the type checker sees; the constants are what code uses, so no outcome string is typed more than twice (once in the alias, once in its constant). An import-time assertion keeps each alias and its constants in step. A StrEnum cannot replace them, because polars converts Python Enum members into its own Enum dtype inside expressions.
Attributes:
-
ACTION_COMPLEMENT(Final[AlleleAction]) – -
ACTION_COMPLEMENT_SWAP(Final[AlleleAction]) – -
ACTION_KEEP(Final[AlleleAction]) – -
ACTION_SWAP(Final[AlleleAction]) – -
AlleleAction– -
DROP_AMBIGUOUS_INDEL_AF_INDECISIVE(Final[DropReason]) – -
DROP_AMBIGUOUS_INDEL_AF_MISMATCH(Final[DropReason]) – -
DROP_AMBIGUOUS_INDEL_NOT_IN_PANEL(Final[DropReason]) – -
DROP_AMBIGUOUS_INDEL_NO_EAF(Final[DropReason]) – -
DROP_INDEL_NOT_ON_REFERENCE(Final[DropReason]) – -
DROP_INVALID_ALLELE(Final[DropReason]) – -
DROP_NOT_ON_REFERENCE(Final[DropReason]) – -
DROP_PALINDROME_UNRESOLVED(Final[DropReason]) – -
DROP_PALINDROMIC_MNP_UNTRUSTED(Final[DropReason]) – -
DropReason– -
PALINDROME_KEEP(Final[PalindromeDecision]) – -
PALINDROME_STRAND_FLIP(Final[PalindromeDecision]) – -
PALINDROME_UNRESOLVED(Final[PalindromeDecision]) – -
PalindromeDecision–
ACTION_COMPLEMENT_SWAP
module-attribute
AlleleAction
module-attribute
DROP_AMBIGUOUS_INDEL_AF_INDECISIVE
module-attribute
DROP_AMBIGUOUS_INDEL_AF_MISMATCH
module-attribute
DROP_AMBIGUOUS_INDEL_NOT_IN_PANEL
module-attribute
DROP_AMBIGUOUS_INDEL_NO_EAF
module-attribute
DROP_INDEL_NOT_ON_REFERENCE
module-attribute
DROP_NOT_ON_REFERENCE
module-attribute
DROP_PALINDROME_UNRESOLVED
module-attribute
DROP_PALINDROMIC_MNP_UNTRUSTED
module-attribute
DropReason
module-attribute
DropReason = Literal[
"invalid_allele",
"not_on_reference",
"indel_not_on_reference",
"palindromic_mnp_untrusted",
"palindrome_unresolved",
"ambiguous_indel_no_eaf",
"ambiguous_indel_not_in_panel",
"ambiguous_indel_af_mismatch",
"ambiguous_indel_af_indecisive",
]