Skip to content

Commit

Permalink
Reverted "biolink:related_to"->"biolink:affects" change and fix dupli…
Browse files Browse the repository at this point in the history
…cate edge creation.
  • Loading branch information
beasleyjonm authored Dec 6, 2024
1 parent 574f276 commit 27ab8c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions parsers/SIGNOR/src/loadSIGNOR.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def get_basic_edge_properties(self, line):
}
return edge_properties

def create_and_parse_edge(self, row, extractor, predicate="biolink:affects",
def create_and_parse_edge(self, row, extractor, predicate="biolink:related_to",
edge_properties=None, mechanism=None):
"""
Creates predicates and edge properties for a row
Expand Down Expand Up @@ -470,9 +470,13 @@ def parse_data(self) -> dict:
edge_properties = effect_mapping[effect][predicate]

# Final edge creation
self.create_and_parse_edge(row, extractor, predicate=predicate,
if mechanism:
# Handle edge from mechanism
self.create_and_parse_edge(row, extractor, predicate=predicate,
edge_properties=edge_properties, mechanism=mechanism)
else:
self.create_and_parse_edge(row, extractor, predicate=predicate,
edge_properties=edge_properties)

# Handle unknown effect case
elif effect == "unknown" and mechanism:
self.create_and_parse_edge(row, extractor, mechanism=mechanism)
Expand Down

0 comments on commit 27ab8c9

Please sign in to comment.