diff --git a/src/annotation_service/annotation_jobs/heredicare_job.py b/src/annotation_service/annotation_jobs/heredicare_job.py index 1727f3b2..94c81385 100644 --- a/src/annotation_service/annotation_jobs/heredicare_job.py +++ b/src/annotation_service/annotation_jobs/heredicare_job.py @@ -71,9 +71,8 @@ def save_to_db(self, info, variant_id, conn): n_fam = heredicare_variant["N_FAM"] n_pat = heredicare_variant["N_PAT"] consensus_class = heredicare_variant["PATH_TF"] if heredicare_variant["PATH_TF"] != "-1" else None - comment = heredicare_variant["VUSTF_21"] if heredicare_variant["VUSTF_21"] is not None else '' - comment = comment.strip() - comment = comment if comment != '' else None + comment = heredicare_variant.get("VUSTF_21", heredicare_variant["VUSTF_15"]) + comment = comment.strip() if comment is not None else None classification_date = heredicare_variant["VUSTF_DATUM"] if heredicare_variant["VUSTF_DATUM"] != '' else None lr_cooc = heredicare_variant["LR_COOC"] lr_coseg = heredicare_variant["LR_COSEG"]