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

Function get_chis

diffpack/rotamer.py:674–680  ·  view source on GitHub ↗
(protein, node_position=None)

Source from the content-addressed store, hash-verified

672
673
674def get_chis(protein, node_position=None):
675 if node_position is None:
676 node_position = protein.node_position
677 chi_atom_position = get_chi_atom_position(protein, node_position) # (num_residue, 4, 4, 3)
678 chis = get_dihedral(*chi_atom_position.unbind(-2)) # (num_residue, 4)
679 chis[~protein.chi_mask] = np.nan
680 return chis
681
682
683def get_chi_atom_position(protein, node_position=None):

Callers 1

set_chisFunction · 0.85

Calls 2

get_chi_atom_positionFunction · 0.85
get_dihedralFunction · 0.85

Tested by

no test coverage detected