alphagenome.models.variant_scorers.AggregationType#

class alphagenome.models.variant_scorers.AggregationType(value)[source]#

Enum indicating the type of variant scorer aggregation.

DIFF_MEAN#

Difference of means, i.e., mean(ALT) - mean(REF).

DIFF_SUM#

Difference of sums, i.e., sum(ALT) - sum(REF).

DIFF_SUM_LOG2#

Log scales predictions, then takes the sum and then the difference, i.e., sum(log2(ALT)) - sum(log2(REF)).

DIFF_LOG2_SUM#

Takes the sum of predictions, applies a log transform, then takes the difference between predictions, i.e., log2(sum(ALT)) - log2(sum(REF)).

L2_DIFF#

Takes the difference of ALT and REF predictions, then computes the L2 norm, i.e., l2_norm(ALT - REF).

ACTIVE_MEAN#

Maximum of means, i.e., max(mean(ALT), mean(REF)).

ACTIVE_SUM#

Maximum of sums, i.e., max(sum(ALT), sum(`REF)).

to_proto()[source]#

Converts the aggregation type to its corresponding proto enum.

Attributes#

Table

AggregationType.DIFF_MEAN = 1#
AggregationType.DIFF_SUM = 2#
AggregationType.DIFF_SUM_LOG2 = 3#
AggregationType.DIFF_LOG2_SUM = 5#
AggregationType.L2_DIFF = 4#
AggregationType.ACTIVE_MEAN = 6#
AggregationType.ACTIVE_SUM = 7#

Methods#

Table

AggregationType.to_proto()[source]#
Return type:

EnumTypeWrapper