Skip to main content

Parameters

Dict[str, float]
default:"lambda: mutation_bias_no_cystein()"
int
default:"1"
bool
default:"True"

Methods

one_step

Abstract method for performing a single mutation step. Parameters
System
required
The system to be mutated
Returns
System
The mutated system (new copy) MutationRecord Record of all mutations performed in this step

choose_chain

Choose one of the chains in the whole System that needs to be mutated. This is done by selecting a chain Parameters
System
required

mutate_random_residue

Mutate a random residue on a chain. Parameters
Chain
required
The chain to mutate.
Returns
Mutation
The mutation performed. This includes the chain_id, the move_type, the residue_index, the old_amino_acid, and the new_amino_acid.

replay

Replay a mutation record on a system, reusing existing mutation logic. Parameters
System
required
The system to apply mutations to
MutationRecord
required
Record of mutations to replay
Returns
System
System with mutations applied

Example