Skip to content

Commit

Permalink
fix(data-pipeline): handle null in ClinVar
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Jan 15, 2025
1 parent e9acd8d commit 1e15aec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data-pipeline/src/data_pipeline/datasets/clinvar.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def _parse_submission(submission_element, trait_mapping_list_element):
condition_medgen_mapping = _associate_condition_with_medgen_id(
submission_element, trait_mapping_list_element, trait_element
)
submission["conditions"].append(condition_medgen_mapping)
if condition_medgen_mapping is not None:
submission["conditions"].append(condition_medgen_mapping)

return submission

Expand Down

0 comments on commit 1e15aec

Please sign in to comment.