Skip to content

Commit

Permalink
Merge pull request #24 from geneontology/dependabot/pip/all-dependenc…
Browse files Browse the repository at this point in the history
…ies-59ef4215ff

Bump the all-dependencies group with 58 updates
  • Loading branch information
pkalita-lbl authored Oct 31, 2024
2 parents 1e203b5 + de75da2 commit 6495310
Show file tree
Hide file tree
Showing 6 changed files with 1,394 additions and 1,004 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ $(PYMODEL):
mkdir -p $@

$(PYDANTIC): $(SOURCE_SCHEMA_PATH)
$(RUN) gen-pydantic --pydantic-version 2 $< > $@.tmp && mv $@.tmp $@
$(RUN) linkml generate pydantic $< > $@.tmp && mv $@.tmp $@

$(DOCDIR):
mkdir -p $@
Expand Down
1,766 changes: 932 additions & 834 deletions poetry.lock

Large diffs are not rendered by default.

599 changes: 439 additions & 160 deletions src/gocam/datamodel/gocam.py

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions src/gocam/schema/gocam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,42 +238,46 @@ classes:
BiologicalProcessAssociation:
description: An association between an activity and a biological process term
is_a: TermAssociation
slot_usage:
term:
range: BiologicalProcessTermObject
attributes:
happens_during:
description: Optional extension describing where the BP takes place
range: PhaseTermObject
part_of:
description: Optional extension allowing hierarchical nesting of BPs
range: BiologicalProcessTermObject
slot_usage:
term:
range: BiologicalProcessTermObject

CellularAnatomicalEntityAssociation:
description: An association between an activity and a cellular anatomical entity term
is_a: TermAssociation
attributes:
part_of:
range: CellTypeAssociation
slot_usage:
term:
range: CellularAnatomicalEntityTermObject
part_of:
range: CellTypeAssociation

CellTypeAssociation:
description: An association between an activity and a cell type term
is_a: TermAssociation
attributes:
part_of:
range: GrossAnatomyAssociation
slot_usage:
term:
range: CellTypeTermObject
part_of:
range: GrossAnatomyAssociation

GrossAnatomyAssociation:
description: An association between an activity and a gross anatomical structure term
is_a: TermAssociation
attributes:
part_of:
range: GrossAnatomyAssociation
slot_usage:
term:
range: GrossAnatomicalStructureTermObject
part_of:
range: GrossAnatomyAssociation

MoleculeAssociation:
description: An association between an activity and a molecule term
Expand Down
3 changes: 3 additions & 0 deletions src/gocam/translation/cx2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ def _add_input_output_nodes(

# Add edges for causal associations between activity nodes
for activity in gocam.activities:
if activity.causal_associations is None:
continue

for association in activity.causal_associations:
if association.downstream_activity in activity_nodes_by_activity_id:
relation_style = RELATIONS.get(association.predicate, None)
Expand Down
6 changes: 6 additions & 0 deletions src/gocam/translation/minerva_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def _iter_activities_by_fact_subject(
for activity, term, evs in _iter_activities_by_fact_subject(
fact_property=HAS_INPUT
):
if activity.has_input is None:
activity.has_input = []
activity.has_input.append(MoleculeAssociation(term=term, evidence=evs))

for activity, term, evs in _iter_activities_by_fact_subject(
Expand All @@ -333,6 +335,8 @@ def _iter_activities_by_fact_subject(
for activity, term, evs in _iter_activities_by_fact_subject(
fact_property=HAS_OUTPUT
):
if activity.has_output is None:
activity.has_output = []
activity.has_output.append(MoleculeAssociation(term=term, evidence=evs))

for activity, term, evs in _iter_activities_by_fact_subject(
Expand Down Expand Up @@ -366,6 +370,8 @@ def _iter_activities_by_fact_subject(
downstream_activity=object_activity.id,
evidence=evs,
)
if subject_activity.causal_associations is None:
subject_activity.causal_associations = []
subject_activity.causal_associations.append(rel)

annotations = _annotations(obj)
Expand Down

0 comments on commit 6495310

Please sign in to comment.