Skip to main content
Random Nucleotide Mutation
License: Random Nucleotide 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.


Go to Tool Page
evo-design/proto-language/proto_language/generator/random_nucleotide_generator.py
View source
Generator contributors
Nucleotide sequence generator that introduces random mutations.
This generator creates sequence diversity by randomly mutating masked positions in DNA or RNA sequences. Nucleotide selection is controlled by the IUPAC substitution scheme, allowing targeted mutation strategies (e.g., transitions only with "R"/"Y", or any base with "N"). The generator category is "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 substitution_scheme; subsequent calls then apply masking_strategy normally.

API Reference

ConfigRandomNucleotideGeneratorConfig Source
Configuration object for RandomNucleotideGenerator.This class defines configuration parameters for the random nucleotide generator, which introduces random nucleotide mutations at masked positions using IUPAC ambiguity code-based sampling.
MaskingStrategy
Controls which positions to mask for sampling. Default: random 30%.
enum
default:"N"
IUPAC code defining the nucleotide substitution pool.Options: N, R, Y, S, W, K, M, B, D, H, V

Usage

python

Metadata