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

Function set_chis

diffpack/rotamer.py:723–730  ·  view source on GitHub ↗
(protein, chis)

Source from the content-addressed store, hash-verified

721
722@torch.no_grad()
723def set_chis(protein, chis):
724 assert chis.shape[0] == protein.num_residue
725 assert chis.shape[1] == 4
726 cur_chis = get_chis(protein)
727 chi_to_rotate = chis - cur_chis
728 chi_to_rotate[torch.isnan(chi_to_rotate)] = 0
729 rotate_side_chain(protein, chi_to_rotate)
730 return protein
731
732
733@torch.no_grad()

Callers

nothing calls this directly

Calls 2

get_chisFunction · 0.85
rotate_side_chainFunction · 0.85

Tested by

no test coverage detected