jax_dna.energy.rna2
Implementation of the oxRNA2 energy model in jax_dna.
Submodules
Classes
Cross-stacking energy function for RNA2 model. |
|
Configuration for the cross-stacking energy function. |
|
Nucleotide rigid body with additional sites for RNA2. |
|
Stacking energy function for DNA1 model. |
|
Configuration for the stacking energy function. |
Package Contents
- class jax_dna.energy.rna2.CrossStacking[source]
Bases:
jax_dna.energy.base.BaseEnergyFunctionCross-stacking energy function for RNA2 model.
- params: CrossStackingConfiguration
- pairwise_energies(body_i: jax_dna.energy.rna2.nucleotide.Nucleotide, body_j: jax_dna.energy.rna2.nucleotide.Nucleotide, unbonded_neighbors: jax_dna.utils.types.Arr_Unbonded_Neighbors_2) jax_dna.utils.types.Arr_Unbonded_Neighbors[source]
Computes the cross stacking energy for each unbonded pair.
- __call__(body: jax_dna.energy.rna2.nucleotide.Nucleotide, seq: jax_dna.utils.types.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.
- class jax_dna.energy.rna2.CrossStackingConfiguration[source]
Bases:
jax_dna.energy.configuration.BaseConfigurationConfiguration for the cross-stacking energy function.
- required_params: tuple[str] = ('dr_low_cross', 'dr_high_cross', 'k_cross', 'r0_cross', 'dr_c_cross', 'theta0_cross_1',...
- init_params() CrossStackingConfiguration[source]
Initializes the dependent parameters in configuration.
Should be implemented in the subclass if dependent parameters are present.
- class jax_dna.energy.rna2.Nucleotide[source]
Bases:
jax_dna.energy.base.BaseNucleotideNucleotide rigid body with additional sites for RNA2.
This class is inteneded to be used as a dataclass for a nucleotide rigid body as a rigid_body_transform_fn in jax_md.energy.ComposedEnergyFunction.
- center: jax_dna.utils.types.Arr_Nucleotide_3
- orientation: jax_dna.utils.types.Arr_Nucleotide_3 | jax_md.rigid_body.Quaternion
- stack_sites: jax_dna.utils.types.Arr_Nucleotide_3
- back_sites: jax_dna.utils.types.Arr_Nucleotide_3
- base_sites: jax_dna.utils.types.Arr_Nucleotide_3
- back_base_vectors: jax_dna.utils.types.Arr_Nucleotide_3
- base_normals: jax_dna.utils.types.Arr_Nucleotide_3
- cross_prods: jax_dna.utils.types.Arr_Nucleotide_3
- bb_p3_sites: jax_dna.utils.types.Arr_Nucleotide_3
- bb_p5_sites: jax_dna.utils.types.Arr_Nucleotide_3
- stack3_sites: jax_dna.utils.types.Arr_Nucleotide_3
- stack5_sites: jax_dna.utils.types.Arr_Nucleotide_3
- static from_rigid_body(rigid_body: jax_md.rigid_body.RigidBody, com_to_backbone_x: jax_dna.utils.types.Scalar, com_to_backbone_y: jax_dna.utils.types.Scalar, com_to_stacking: jax_dna.utils.types.Scalar, com_to_hb: jax_dna.utils.types.Scalar, p3_x: jax_dna.utils.types.Scalar, p3_y: jax_dna.utils.types.Scalar, p3_z: jax_dna.utils.types.Scalar, p5_x: jax_dna.utils.types.Scalar, p5_y: jax_dna.utils.types.Scalar, p5_z: jax_dna.utils.types.Scalar, pos_stack_3_a1: jax_dna.utils.types.Scalar, pos_stack_3_a2: jax_dna.utils.types.Scalar, pos_stack_5_a1: jax_dna.utils.types.Scalar, pos_stack_5_a2: jax_dna.utils.types.Scalar) Nucleotide[source]
Class method to precompute nucleotide sites from a rigid body.
- class jax_dna.energy.rna2.Stacking[source]
Bases:
jax_dna.energy.base.BaseEnergyFunctionStacking energy function for DNA1 model.
- params: StackingConfiguration
- compute_v_stack(body: jax_dna.energy.rna2.nucleotide.Nucleotide, bonded_neighbors: jax_dna.utils.types.Arr_Bonded_Neighbors_2) jax_dna.utils.types.Arr_Bonded_Neighbors[source]
Computes the sequence-independent energy for each bonded pair.
- pairwise_energies(body: jax_dna.energy.rna2.nucleotide.Nucleotide, seq: jax_dna.utils.types.Discrete_Sequence, bonded_neighbors: jax_dna.utils.types.Arr_Bonded_Neighbors_2) jax_dna.utils.types.Arr_Bonded_Neighbors[source]
Computes the stacking energy for each bonded pair.
- __call__(body: jax_dna.energy.rna2.nucleotide.Nucleotide, 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.
- class jax_dna.energy.rna2.StackingConfiguration[source]
Bases:
jax_dna.energy.configuration.BaseConfigurationConfiguration for the stacking energy function.
- 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.