MCPcopy Create free account
hub / github.com/DeepGraphLearning/S3F / residue2surface

Method residue2surface

s3f/gvp.py:97–100  ·  view source on GitHub ↗
(self, graph, surf_graph)

Source from the content-addressed store, hash-verified

95 raise ValueError("Unknown readout `%s`" % readout)
96
97 def residue2surface(self, graph, surf_graph):
98 res2surf = graph.res2surf.flatten(1, 2)
99 # Re-index after batching surface graphs
100 res2surf = res2surf + (surf_graph.num_cum_nodes - surf_graph.num_nodes)[graph.residue2graph].unsqueeze(-1)
101
102 def surface_feature_init(self, graph, surf_graph, input):
103 # Residue -> surface graph correspondence

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected