Skip to content

Commit

Permalink
fix(contacts): wrong theta angle for pi-pi interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
y1zhou committed Aug 16, 2024
1 parent 61cc12c commit 3d96415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interactions/aromatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ pub fn find_cation_pi(ring: &Ring, entity: &AtomConformerResidueChainModel) -> O
}
}

/// Identify pi-pi interactions using the classification by [Chakrabarti and Bhattacharyya (2007)](https://doi.org/10.1016/j.pbiomolbio.2007.03.016).
/// Identify pi-pi interactions using the classification by [Chakrabarti and Bhattacharyya (2007)](https://doi.org/10.1016/j.pbiomolbio.2007.03.016), Fig. 11.
pub fn find_pi_pi(ring1: &Ring, ring2: &Ring) -> Option<Interaction> {
let angle_vec = ring1.center - ring2.center;
let dist = (angle_vec).norm();
if dist <= PI_PI_DIST_THRESHOLD {
let theta = point_ring_angle(ring1, &angle_vec);
let theta = point_ring_angle(ring1, &ring2.center);
let dihedral = ring_ring_angle(ring1, ring2);

match dihedral {
Expand Down

0 comments on commit 3d96415

Please sign in to comment.