
License: Random Protein Sampling is open source and free for academic and commercial use under an MIT license. Please refer to the license for full terms.
This generator 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.

"mutation". When the assigned segment has a
starting sequence (or an upstream optimizer stage has populated proposals),
masking_strategy controls which positions are mutated on each call. When
the segment has no starting sequence, the first sample() call fills each
proposal with a fully random sequence of the segment’s length using the
configured codon_scheme; subsequent calls then apply masking_strategy
normally.
API Reference
Configuration object for RandomProteinGenerator.This class defines configuration parameters for the random protein generator,
which introduces random amino acid mutations at masked positions using
codon scheme-biased sampling.
Controls which positions to mask for sampling. Default: random 30%.
Codon scheme for amino acid sampling probabilities.Options:
UNIFORM, NNN, NNK, NNS, NDT, DBK, NRTResidues to remove after codon-scheme handling (e.g. [‘C’] to forbid cysteine).
Usage
python
Metadata
| Property | Value |
|---|---|
| Key | random-protein |
| Class | RandomProteinGenerator |
| Category | mutation |
| Input Type | starting_sequence |
| Uses GPU | False |
| Supported Sequence Types | protein |
| Allows Empty Start | True |