jax_dna.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
- jax_dna.energy.dna1.hydrogen_bonding.HB_WEIGHTS_SA
- class jax_dna.energy.dna1.hydrogen_bonding.HydrogenBondingConfiguration[source]
Bases:
jax_dna.energy.configuration.BaseConfigurationConfiguration for the hydrogen bonding energy function.
- 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 jax_dna.energy.dna1.hydrogen_bonding.HydrogenBonding[source]
Bases:
jax_dna.energy.base.BaseEnergyFunctionHydrogen bonding energy function for DNA1 model.
- params: HydrogenBondingConfiguration
- compute_v_hb(body_i: jax_dna.energy.base.BaseNucleotide, body_j: jax_dna.energy.base.BaseNucleotide, unbonded_neighbors: jax_dna.utils.types.Arr_Unbonded_Neighbors) jax_dna.utils.types.Arr_Unbonded_Neighbors[source]
Computes the sequence-independent energy for each unbonded pair.
- pairwise_energies(body_i: jax_dna.energy.base.BaseNucleotide, body_j: jax_dna.energy.base.BaseNucleotide, seq: jax_dna.utils.types.Discrete_Sequence, unbonded_neighbors: jax_dna.utils.types.Arr_Unbonded_Neighbors_2) jax_dna.utils.types.Arr_Unbonded_Neighbors[source]
Computes the hydrogen bonding energy for each unbonded pair.
- __call__(body: jax_dna.energy.base.BaseNucleotide, seq: jax_dna.utils.types.Discrete_Sequence, bonded_neighbors: jax_dna.utils.types.Arr_Bonded_Neighbors_2, unbonded_neighbors: jax_dna.utils.types.Arr_Unbonded_Neighbors_2) jax_dna.utils.types.Scalar[source]
Calculate the energy of the system.