Skip to content

Commit

Permalink
fixed a bug in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyuma committed Nov 19, 2024
1 parent 74a763a commit a7f26f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/ARAX/ARAXQuery/Infer/scripts/infer_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def genrete_treat_subgraphs(self, response: ARAXResponse, top_scores: pd.DataFra
description="This edge is a container for a computed value between two nodes that is not directly attachable to other edges."),
Attribute(attribute_type_id="EDAM-DATA:0951", original_attribute_name="probability_treats", value=str(treat_score)),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
retrieval_source = [
RetrievalSource(resource_id="infores:arax", resource_role="primary_knowledge_source")
Expand Down Expand Up @@ -342,7 +342,7 @@ def genrete_treat_subgraphs(self, response: ARAXResponse, top_scores: pd.DataFra
edge_attribute_list = [
Attribute(original_attribute_name="defined_datetime", value=datetime.now().strftime("%Y-%m-%d %H:%M:%S"), attribute_type_id="metatype:Datetime"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
if predicate == "biolink:self_loop_relation":
edge_attribute_list += [
Expand Down Expand Up @@ -378,7 +378,7 @@ def genrete_treat_subgraphs(self, response: ARAXResponse, top_scores: pd.DataFra
Attribute(original_attribute_name=None, value=True, attribute_type_id="EDAM-DATA:1772", attribute_source="infores:arax", value_type_id="metatype:Boolean", value_url=None, description="This edge is a container for a computed value between two nodes that is not directly attachable to other edges."),
Attribute(attribute_type_id="EDAM-DATA:0951", original_attribute_name="probability_treats", value=str(treat_score)),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
retrieval_source = [
RetrievalSource(resource_id="infores:arax", resource_role="primary_knowledge_source")
Expand Down Expand Up @@ -612,7 +612,7 @@ def genrete_regulate_subgraphs(self, response: ARAXResponse, query_chemical: Opt
description="This edge is a container for a computed value between two nodes that is not directly attachable to other edges."),
Attribute(attribute_type_id="EDAM-OPERATION:2434", original_attribute_name=f"probably_{model_type}_activity", value=str(prob_score)),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
retrieval_source = [
RetrievalSource(resource_id="infores:arax", resource_role="primary_knowledge_source")
Expand Down Expand Up @@ -663,7 +663,7 @@ def genrete_regulate_subgraphs(self, response: ARAXResponse, query_chemical: Opt
description="This edge is a container for a computed value between two nodes that is not directly attachable to other edges."),
Attribute(attribute_type_id="EDAM-OPERATION:2434", original_attribute_name=f"probably_{model_type}_activity", value=str(prob_score)),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
if model_type == 'increase':
edge_qualifier_direction = 'increased'
Expand Down Expand Up @@ -779,7 +779,7 @@ def genrete_regulate_subgraphs(self, response: ARAXResponse, query_chemical: Opt
Attribute(original_attribute_name=None, value=True, attribute_type_id="EDAM-DATA:1772", attribute_source="infores:arax", value_type_id="metatype:Boolean", value_url=None, description="This edge is a container for a computed value between two nodes that is not directly attachable to other edges."),
Attribute(attribute_type_id="EDAM-OPERATION:2434", original_attribute_name=f"probably_{model_type}_activity", value=str(regulate_score)),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:agent_type", value="computational_model"),
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction")
Attribute(attribute_source="infores:arax", attribute_type_id="biolink:knowledge_level", value="prediction"),
]
retrieval_source = [
RetrievalSource(resource_id="infores:arax", resource_role="primary_knowledge_source")
Expand Down

0 comments on commit a7f26f1

Please sign in to comment.