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

Method assign_structure

s3f/dataset.py:102–108  ·  view source on GitHub ↗
(self, sequence_graph, structure_graph)

Source from the content-addressed store, hash-verified

100 return sequence_graph, structure_graph, surface_graph
101
102 def assign_structure(self, sequence_graph, structure_graph):
103 graph = structure_graph.clone()
104 # Assume the backbone structure won't change
105 assert graph.num_residue == sequence_graph.num_residue
106 with graph.residue():
107 graph.residue_type = sequence_graph.residue_type
108 return graph
109
110 def __getitem__(self, index):
111 sequence_graph = self.mutated_sequences[index]

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected