Skip to content

Commit

Permalink
fixed vcf downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Mar 11, 2024
1 parent 8bc59ed commit ae10fea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/frontend_celery/webapp/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ <h4>Changelog</h4>
<li>When there were multiple rows in the HerediCaRe classifications table the center details button would always open and close details of all rows</li>
<li>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</li>
<li>Longer insertions were previously clogging the header line. This was fixed by cropping the reference and alternative bases if their length is large</li>
<li>Fixed a bug where vcfs were not downloadable when the variant had HerediCaRe annotations but no center specific classifications</li>
</ul>
</div>

Expand Down

0 comments on commit ae10fea

Please sign in to comment.