MCPcopy Create free account
hub / github.com/BioinfoMachineLearning/FlowDock / cartesian_to_internal

Function cartesian_to_internal

flowdock/utils/frame_utils.py:62–66  ·  view source on GitHub ↗

Right-multiply the pose matrix.

(rs: torch.Tensor, frames: RigidTransform)

Source from the content-addressed store, hash-verified

60
61
62def cartesian_to_internal(rs: torch.Tensor, frames: RigidTransform):
63 """Right-multiply the pose matrix."""
64 rs_loc = rs - frames.t
65 rs_loc = torch.matmul(rs_loc.unsqueeze(-2), frames.R)
66 return rs_loc.squeeze(-2)
67
68
69def apply_similarity_transform(

Callers 3

compute_fape_from_atom37Function · 0.90
compute_TMscore_lboundFunction · 0.90

Calls 2

unsqueezeMethod · 0.80
squeezeMethod · 0.80

Tested by

no test coverage detected