Skip to main content
MPNN Sequence Probability
License: This constraint can use multiple tools, each under its own license. See the Tools Used tab and each tool’s page for license details.

This constraint is open source. Any third-party models, product names, or trademarks referenced are the property of their respective owners, and Proto is not affiliated with them.


evo-design/proto-language/proto_language/constraint/sequence_scoring/mpnn_sequence_probability_constraint.py
View source
Constraint contributors
Score proposals by MPNN probability; lower is better.

API Reference

ConfigMPNNSequenceProbabilityConfig Source
Configuration for structure-conditioned MPNN sequence-probability scoring.
enum
default:"ligandmpnn"
Structure-conditioned model used to score the sequence.Options: ligandmpnn, proteinmpnn
enum
default:"configured_structure_inputs"
Use configured structure_inputs or each proposal’s attached structure for MPNN scoring.Options: configured_structure_inputs, proposal_structure
array
Structures for MPNN scoring; optional when using proposal structures.
string
Structure chain corresponding to the scored input sequence.
enum
default:"probability_loss"
Return 1-exp(avg_log_likelihood), mean NLL, or perplexity.Options: probability_loss, nll, perplexity
enum
default:"model"
Compute MPNN probability with the model or read pmpnn from proposal generator metadata.Options: model, proposal_metadata
string
Generator metadata namespace to read for pmpnn when score_source=‘proposal_metadata’.
enum
default:"proteinmpnn"
ProteinMPNN weights used when model=‘proteinmpnn’.Options: proteinmpnn, v_48_002, v_48_010, v_48_030, abmpnn, soluble
boolean
default:"False"
Whether LigandMPNN scoring conditions on fixed-residue sidechain atoms.
number
default:"8.0"
Ligand-residue distance cutoff (Å) used by LigandMPNN scoring.
enum
default:"ligand_mpnn"
LigandMPNN implementation used for scoring: Foundry-backed ligand_mpnn or original LigandMPNN.Options: ligand_mpnn, original
string
Optional explicit LigandMPNN checkpoint path.
integer
Seed for MPNN scoring. None lets proto-tools choose its default seed behavior.
string
default:"cuda"
Device for MPNN scoring.
boolean
default:"False"
Whether to print MPNN scoring progress.

Usage

python

Metadata