MCPcopy Index your code
hub / github.com/DeepGraphLearning/DiffPack / randomize

Function randomize

diffpack/rotamer.py:962–965  ·  view source on GitHub ↗
(protein)

Source from the content-addressed store, hash-verified

960
961@torch.no_grad()
962def randomize(protein):
963 torsion_updates = torch.rand((protein.num_residue, 4), device=protein.device) * 2 * np.pi
964 rotate_side_chain(protein, torsion_updates)
965 return protein
966
967
968def _rmsd_per_residue(pred_pos_per_residue, true_pos_per_residue, mask):

Callers

nothing calls this directly

Calls 1

rotate_side_chainFunction · 0.85

Tested by

no test coverage detected