GeneMaskSplicingScorer#

class alphagenome.models.v2.variant_scorers.GeneMaskSplicingScorer(requested_output, width)[source]#

Variant scorer for gene-mask scoring for splicing.

Variant scorer that quantifies changes in class assignment probabilities (dna_output.OutputType.SPLICE_SITES) or changes in the usage of splice sites (dna_output.OutputType.SPLICE_SITE_USAGE) between ALT and REF alleles using a gene body mask (exons and introns).

requested_output#

The requested output type (SPLICE_SITES or SPLICE_SITE_USAGE).

width#

The width of the mask around the variant, or None for the full gene body.

base_variant_scorer#

The base variant scorer.

name#

The name of the scorer (a composite of the above attributes that uniquely identifies a scorer combination).

is_signed#

Whether this variant scorer is directional (such that scores may be negative or positive) or non-directional (scores are always non-negative).

to_proto()[source]#

Converts the scorer to its corresponding proto message.

Raises:

ValueError – If the requested output or width is not supported.