From 790ce6dc668167ef18cf1bf136629cffbf4a9b10 Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Mon, 3 Jun 2024 10:16:55 +0200 Subject: [PATCH] improved comment calculation for heredicare annotation --- src/annotation_service/annotation_jobs/heredicare_job.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"]