-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disallowed extra fields in models, and updated ingest and export code…
… to handle these (#127)
- Loading branch information
Showing
15 changed files
with
63 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from __future__ import annotations | ||
from pydantic import Field | ||
from typing import List, Optional | ||
from bia_shared_datamodels import bia_data_model, semantic_models | ||
from bia_shared_datamodels import bia_data_model | ||
|
||
|
||
class Study(semantic_models.Study, bia_data_model.DocumentMixin): | ||
class Study(bia_data_model.Study): | ||
experimental_imaging_component: Optional[List[ExperimentalImagingDataset]] = Field(default_factory=list, description="""A dataset of that is associated with the study.""") | ||
|
||
class ExperimentalImagingDataset(semantic_models.ExperimentalImagingDataset, bia_data_model.DocumentMixin): | ||
class ExperimentalImagingDataset(bia_data_model.ExperimentalImagingDataset): | ||
pass |
16 changes: 2 additions & 14 deletions
16
...t_data/experimental_imaging_datasets/S-BIADTEST/47a4ab60-c76d-4424-bfaa-c2a024de720c.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
{ | ||
"title_id": "Study Component 1", | ||
"uuid": "47a4ab60-c76d-4424-bfaa-c2a024de720c", | ||
"file_reference_count": 4, | ||
"description": "Description of study component 1", | ||
"acquisition_process": [ | ||
"c2e44a1b-a43c-476e-8ddf-8587f4c955b3" | ||
], | ||
"specimen_imaging_preparation_protocol": [ | ||
"7199d730-29f1-4ad8-b599-e9089cbb2d7b" | ||
], | ||
"biological_entity": [ | ||
"64a67727-4e7c-469a-91c4-6219ae072e99", | ||
"6950718c-4917-47a1-a807-11b874e80a23" | ||
], | ||
"specimen_growth_protocol": [], | ||
"analysis_method": [ | ||
{ | ||
"protocol_description": "Test image analysis", | ||
"features_analysed": "Test image analysis overview" | ||
} | ||
], | ||
"submitted_in_study_uuid": "a2fdbd58-ee11-4cd9-bc6a-f3d3da7fff71", | ||
"correlation_method": [], | ||
"example_image_uri": [], | ||
"image_count": 0 | ||
"example_image_uri": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,5 @@ | |
} | ||
], | ||
"funding_statement": "This work was funded by the EBI", | ||
"annotation_component": [], | ||
"attribute": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
bia-shared-datamodels/src/bia_shared_datamodels/bia_data_model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters