mythos.energy.dna1.hydrogen_bonding
Hydrogen bonding energy function for DNA1 model.
Attributes
Classes
Configuration for the hydrogen bonding energy function. |
|
Hydrogen bonding energy function for DNA1 model. |
Module Contents
- mythos.energy.dna1.hydrogen_bonding.HB_WEIGHTS_SA
- class mythos.energy.dna1.hydrogen_bonding.HydrogenBondingConfiguration[source]
Bases:
mythos.energy.configuration.BaseConfigurationConfiguration for the hydrogen bonding energy function.
- pseq_constraints: mythos.input.sequence_constraints.SequenceConstraints | None = None
- required_params: tuple[str] = ('eps_hb', 'a_hb', 'dr0_hb', 'dr_c_hb', 'dr_low_hb', 'dr_high_hb', 'a_hb_1', 'theta0_hb_1',...
- dependent_params: tuple[str] = ('b_low_hb', 'dr_c_low_hb', 'b_high_hb', 'dr_c_high_hb', 'b_hb_1', 'delta_theta_hb_1_c',...
- init_params() HydrogenBondingConfiguration[source]
Initializes the dependent parameters in configuration.
Should be implemented in the subclass if dependent parameters are present.
- class mythos.energy.dna1.hydrogen_bonding.HydrogenBonding[source]
Bases:
mythos.energy.base.BaseEnergyFunctionHydrogen bonding energy function for DNA1 model.
- params: HydrogenBondingConfiguration
- compute_v_hb(body_i: mythos.energy.base.BaseNucleotide, body_j: mythos.energy.base.BaseNucleotide, unbonded_neighbors: mythos.utils.types.Arr_Unbonded_Neighbors) mythos.utils.types.Arr_Unbonded_Neighbors[source]
Computes the sequence-independent energy for each unbonded pair.
- weight(i: int, j: int, seq: mythos.utils.types.Probabilistic_Sequence) float[source]
Computes the sequence-dependent weight for an unbonded pair.
- pairwise_energies(body_i: mythos.energy.base.BaseNucleotide, body_j: mythos.energy.base.BaseNucleotide, seq: mythos.utils.types.Discrete_Sequence, unbonded_neighbors: mythos.utils.types.Arr_Unbonded_Neighbors_2) mythos.utils.types.Arr_Unbonded_Neighbors[source]
Computes the hydrogen bonding energy for each unbonded pair.
- compute_energy(nucleotide: mythos.energy.base.BaseNucleotide) mythos.utils.types.Scalar[source]
Compute the energy of the system given the nucleotide.