Back to SimpleMetrics page.
Autogenerated Tag Syntax Documentation:
A PerResidueRealMetric for calculating the conservation of a position given some predicted probabilities (using the relative Shannon Entropy).
References and author information for the ProbabilityConservationMetric simple metric:
ProbabilityConservationMetric SimpleMetric's author(s): Moritz Ertelt, University of Leipzig [moritz.ertelt@gmail.com]
<ProbabilityConservationMetric name="(&string;)" custom_type="(&string;)"
metric="(&string;)" use_cached_data="(false &bool;)"
cache_prefix="(&string;)" cache_suffix="(&string;)"
fail_on_missing_cache="(true &bool;)" />
A metric for calculating the conservation of a position given some predicted probabilities (using the relative Shannon Entropy). The returned value is between 0 (no conservation, all amino acids are equally likely) to 1 (fully conserved, only one amino acid is predicted). 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.
This example predicts the amino acid probabilities for chain A of our protein using ProteinMPNN and then calculates the conservation from them. Additionally it uses the metric_to_bfactor
option of the RunSimpleMetrics mover which enables easy visualization of the values in ChimeraX/PyMol.
<ROSETTASCRIPTS>
<RESIDUE_SELECTORS>
<Chain name="res" chains="A" />
</RESIDUE_SELECTORS>
<SIMPLE_METRICS>
<ProteinMPNNProbabilitiesMetric name="prediction"/>
<ProbabilityConservationMetric name="conservation" metric="prediction" custom_type="score"/>
</SIMPLE_METRICS>
<FILTERS>
</FILTERS>
<MOVERS>
<RunSimpleMetrics name="run" metrics="conservation" metric_to_bfactor="score"/>
</MOVERS>
<PROTOCOLS>
<Add mover_name="run"/>
</PROTOCOLS>
</ROSETTASCRIPTS>
The implementation in Rosetta is currently unpublished.