Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.5
1.10.6
2 changes: 1 addition & 1 deletion entity-api-spec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
description: 'The SenNet Entity API is a standard RESTful web service with create, update and read operations for the standard SenNet provenance graph entities.'
version: 1.10.5
version: 1.10.6
title: SenNet Entity API
contact:
name: SenNet Help Desk
Expand Down
6 changes: 6 additions & 0 deletions src/lib/constraints/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ def build_sample_organ_constraints(entity, constraints=None):
descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.SUSPENSION])
constraints.append(build_constraint(ancestor, [descendant]))

# Sample suspension ---> Sample organ of blood (organ_uberon)
ancestor = build_constraint_unit(
entity, [SpecimenCategories.ORGAN], [Ontology.ops(as_data_dict=True, val_key='organ_uberon').organ_types()['BLOOD']]
)
constraints.append(build_constraint(ancestor, [descendant]))

# Sample block ---> Sample organ
ancestor = build_constraint_unit(entity, [SpecimenCategories.ORGAN])
descendant = build_constraint_unit(Entities.SAMPLE, [SpecimenCategories.BLOCK])
Expand Down
Loading