alphagenome.models.variant_scorers.CenterMaskScorer#
- class alphagenome.models.variant_scorers.CenterMaskScorer(requested_output, width, aggregation_type)[source]#
Variant scorer for center mask scorers.
Variant scorer that aggregates ALT and REF values using a spatial mask centered around the variant before computing the difference. This scorer aggregates over the spatial axis and returns one score per output track.
- requested_output#
The requested output type (e.g., ATAC, DNASE, etc.)
- width#
The width of the mask around the variant.
- aggregation_type#
The aggregation type.
- 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 positive).
- Raises:
ValueError – If the requested output, width, or aggregation type is not supported.
Attributes#
Table
- CenterMaskScorer.base_variant_scorer#
- CenterMaskScorer.is_signed#
- CenterMaskScorer.name#
-
CenterMaskScorer.requested_output:
OutputType
#
-
CenterMaskScorer.aggregation_type:
AggregationType
#
Methods#
Table
|