Back to SimpleMetrics page.
Autogenerated Tag Syntax Documentation:
A metric for calculating the weighted average of multiple PerResidueProbabilitiesMetrics.
References and author information for the AverageProbabilitiesMetric simple metric:
AverageProbabilitiesMetric SimpleMetric's author(s): Moritz Ertelt, University of Leipzig [moritz.ertelt@gmail.com]
<AverageProbabilitiesMetric name="(&string;)" custom_type="(&string;)"
metrics="(&string;)" weights="(&string;)"
use_cached_data="(false &bool;)" cache_prefix="(&string;)"
cache_suffix="(&string;)" fail_on_missing_cache="(true &bool;)" />
A metric for averaging multiple PerResidueProbabilitiesMetrics
.
Like other PerResidueProbabilitiesMetrics
the probabilities can be output as logits in a psi-blast style PSSM using the SaveProbabilitiesMetricMover, and used as input for the FavorSequenceProfileMover. This metric alone does not require compilation with extras=tensorflow,torch
but the model predictions that are typically input do. See Building Rosetta with TensorFlow and Torch for the compilation setup.
In this example we predict the amino acid probabilities for chain A of our protein using ProteinMPNN and ESM, average both predictions and use the average probabilities to calculate a single score for our protein.
<ROSETTASCRIPTS>
<RESIDUE_SELECTORS>
<Chain name="res" chains="A" />
</RESIDUE_SELECTORS>
<SIMPLE_METRICS>
----------------- Define models to use -----------------------------
<ProteinMPNNProbabilitiesMetric name="mpnn" residue_selector="res"/>
<PerResidueEsmProbabilitiesMetric name="esm" residue_selector="res" model="esm2_t33_650M_UR50D"/>
----------------- Average the probabilities ------------------------
<AverageProbabilitiesMetric name="avg" metrics="mpnn,esm"/>
----------------- Analyze predictions without re-calculation -------
<PseudoPerplexityMetric name="perplex" metric="avg" use_cached_data="true"/>
</SIMPLE_METRICS>
<FILTERS>
</FILTERS>
<MOVERS>
<RunSimpleMetrics name="predictions" metrics="avg"/>
<RunSimpleMetrics name="analysis" metrics="perplex"/>
</MOVERS>
<PROTOCOLS>
<Add mover_name="predictions"/>
<Add mover_name="analysis"/>
</PROTOCOLS>
</ROSETTASCRIPTS>
The implementation in Rosetta is currently unpublished.