diff --git a/src/common/models.py b/src/common/models.py index c22c5191..01cd2f28 100644 --- a/src/common/models.py +++ b/src/common/models.py @@ -859,7 +859,9 @@ def get_centers_with_classifications(self): def to_vcf(self, prefix = True): consensus_comment = "" if self.consensus_classification.comment is None else self.consensus_classification.comment consensus_date = "" if self.consensus_classification.classification_date is None else self.consensus_classification.classification_date.strftime('%Y-%m-%d') - center_specific_vcf = functions.process_multiple(self.center_classifications, sep="~24", do_prefix = False) + center_specific_vcf = "" + if self.center_classifications is not None: + center_specific_vcf = functions.process_multiple(self.center_classifications, sep="~24", do_prefix = False) heredicare_annotation_vcf = "~7C".join([str(x) for x in [self.vid, self.n_fam, self.n_pat, self.lr_cooc, self.lr_coseg, self.lr_family, self.consensus_classification.selected_class_to_num(), consensus_comment, consensus_date, center_specific_vcf]]) if prefix: heredicare_annotation_vcf = "heredicare_annotation~1Y" + heredicare_annotation_vcf diff --git a/src/frontend_celery/webapp/templates/index.html b/src/frontend_celery/webapp/templates/index.html index fe03a99d..9bbb3e87 100644 --- a/src/frontend_celery/webapp/templates/index.html +++ b/src/frontend_celery/webapp/templates/index.html @@ -109,6 +109,7 @@

Changelog

  • When there were multiple rows in the HerediCaRe classifications table the center details button would always open and close details of all rows
  • Previously, an empty HerediCaRe table was shown on the variant details page when the variant was known to HerediCaRe, but was not classified. The empty table was removed in this case
  • Longer insertions were previously clogging the header line. This was fixed by cropping the reference and alternative bases if their length is large
  • +
  • Fixed a bug where vcfs were not downloadable when the variant had HerediCaRe annotations but no center specific classifications