gain.effect_annotation.effect_checkers package
Submodules
gain.effect_annotation.effect_checkers.coding module
gain.effect_annotation.effect_checkers.effect_checker module
gain.effect_annotation.effect_checkers.frame_shift module
- class FrameShiftEffectChecker[source]
Bases:
EffectCheckerFrame shift effect checker class.
- check_if_new_stop(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) bool[source]
Check for a new stop codon.
- check_stop_codon(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Check for stop codon.
- create_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest, change_length: int) AnnotationEffect | None[source]
Create frame-shift annotation effect.
- get_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Return an annotation effect or None.
gain.effect_annotation.effect_checkers.intron module
gain.effect_annotation.effect_checkers.promoter module
- class PromoterEffectChecker[source]
Bases:
EffectCheckerPromoter effect checker class.
The promoter is the window of
promoter_lenbases upstream of the first exon. The near base of the variant must lie in the window. A near base at distancepromoter_lenis inside, and at distancepromoter_len + 1it is outside. The distance of the base next to the exon is 1. A variant with any base inside an exon has no promoter effect.- create_effect(transcript_model: TranscriptModel) AnnotationEffect[source]
- create_negative_strand_effect(transcript_model: TranscriptModel, variant: Variant) AnnotationEffect[source]
- create_positive_strand_effect(transcript_model: TranscriptModel, variant: Variant) AnnotationEffect[source]
Create a positive strand promoter effect.
- get_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Return a promoter effect or None.
gain.effect_annotation.effect_checkers.protein_change module
- class ProteinChangeEffectChecker[source]
Bases:
EffectCheckerProtein change effect checker.
- get_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Return an annotation effect or None.
- mutation_type(aaref: list[str], aaalt: list[str]) str[source]
Check the mutation type.
gain.effect_annotation.effect_checkers.splice_site module
gain.effect_annotation.effect_checkers.start_loss module
gain.effect_annotation.effect_checkers.stop_loss module
gain.effect_annotation.effect_checkers.utr module
- class UTREffectChecker[source]
Bases:
EffectCheckerUTR effect checker class.
- check_stop_codon(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Check for stop codon.
- create_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest, strand: str) AnnotationEffect | None[source]
Create UTR effect.
- create_utr_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest, strand: str) AnnotationEffect[source]
Create an UTR annotation effect.
- get_effect(request: PositiveStrandAnnotationRequest | NegativeStrandAnnotationRequest) AnnotationEffect | None[source]
Return an annotation effect or None.