-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Schema 4.0.0 enrichment #6273
Conversation
import copy | ||
|
||
modified_metadata = copy.deepcopy(self.sample_dataset_metadata) | ||
modified_metadata.development_stage = [OntologyTermId("Test", "HsapDv:0000008")] | ||
modified_metadata.tissue = [TissueOntologyTermId("Test", "UBERON:0002048", "cell culture")] | ||
modified_metadata.tissue = [TissueOntologyTermId("Test", "UBERON:0002048")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3f3c197
to
7ae7202
Compare
Deployment Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6273 +/- ##
==========================================
+ Coverage 91.76% 91.78% +0.02%
==========================================
Files 175 175
Lines 14129 14167 +38
==========================================
+ Hits 12965 13003 +38
Misses 1164 1164
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4b81bf2
to
34a13b4
Compare
backend/portal/api/enrichment.py
Outdated
@@ -23,3 +35,17 @@ def enrich_dataset_with_ancestors(dataset, key, ontology_mapping): | |||
unique_ancestors = list(OrderedDict.fromkeys(flattened_ancestors)) | |||
if unique_ancestors: | |||
dataset[f"{key}_ancestors"] = unique_ancestors | |||
|
|||
|
|||
def generate_tagged_ontology_id(tissue): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: what do you think of renaming this function generate_tagged_tissue_ontology_id
since its tissue-specific?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @nayib-jose-gloria, I have updated the function name!
44df942
to
dcc31c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
dcc31c6
to
57d2671
Compare
Reason for Change
Changes
Testing steps
tissue_ancestors
: