mythos.energy.rna2.stacking
Stacking energy function for RNA2 model.
Classes
Configuration for the stacking energy function. |
|
Stacking energy function for DNA1 model. |
Module Contents
- class mythos.energy.rna2.stacking.StackingConfiguration[source]
Bases:
mythos.energy.configuration.BaseConfigurationConfiguration for the stacking energy function.
- pseq_constraints: mythos.input.sequence_constraints.SequenceConstraints | None = None
- required_params: tuple[str] = ('eps_stack_base', 'eps_stack_kt_coeff', 'dr_low_stack', 'dr_high_stack', 'a_stack',...
- init_params() StackingConfiguration[source]
Initializes the dependent parameters in configuration.
Should be implemented in the subclass if dependent parameters are present.
- class mythos.energy.rna2.stacking.Stacking[source]
Bases:
mythos.energy.base.BaseEnergyFunctionStacking energy function for DNA1 model.
- params: StackingConfiguration
- compute_v_stack(body: mythos.energy.rna2.nucleotide.Nucleotide, bonded_neighbors: mythos.utils.types.Arr_Bonded_Neighbors_2) mythos.utils.types.Arr_Bonded_Neighbors[source]
Computes the sequence-independent energy for each bonded pair.
- pseq_weights(i: int, j: int, seq: mythos.utils.types.Probabilistic_Sequence) float[source]
Computes the probabilistic sequence-dependent weight for a bonded pair.
- pairwise_energies(body: mythos.energy.rna2.nucleotide.Nucleotide, seq: mythos.utils.types.Discrete_Sequence, bonded_neighbors: mythos.utils.types.Arr_Bonded_Neighbors_2) mythos.utils.types.Arr_Bonded_Neighbors[source]
Computes the stacking energy for each bonded pair.
- compute_energy(nucleotide: mythos.energy.rna2.nucleotide.Nucleotide) mythos.utils.types.Scalar[source]
Compute the energy of the system given the nucleotide.