Skip to content
Merged
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
11 changes: 9 additions & 2 deletions src/lib/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ def val_callback(dict):
as_data_dict=True, key_callback=prop_callback, val_callback=val_callback, data_as_val=True,
).dataset_types_hierarchy()

if dataset_type is not None and dataset_type in all_facets:
return all_facets[dataset_type]
if dataset_type is not None:
if dataset_type in all_facets:
return all_facets[dataset_type]
else:
return [{
"modality": 'N/A',
"analyte": 'N/A',
"dataset_type": dataset_type
}]
else:
matrix = list(all_facets.values())

Expand Down
Loading