Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with variant annotation export (#328) #329

Merged
merged 1 commit into from Feb 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions HISTORY.rst
Expand Up @@ -43,6 +43,7 @@ End-User Summary
- Make clinvar UI work with many annotations (#302)
- Fixing CADD annotation (#319)
- Adding mitochondrial inheritance to case phenotype annotation (#325)
- Fix issue with variant annotation export (#328)

Full Change List
================
Expand Down Expand Up @@ -89,6 +90,7 @@ Full Change List
Dropping support for Python 3.7.
- Fixing CADD annotation (#319)
- Adding mitochondrial inheritance to case phenotype annotation (#325)
- Fix issue with variant annotation export (#328)

-------
v0.23.9
Expand Down
8 changes: 6 additions & 2 deletions variants/views.py
Expand Up @@ -1554,10 +1554,14 @@ def yield_rows(self, *, case, cases, project):
x.refseq_transcript_id for x in anno["variants"] if x.refseq_gene_id
)
hgvs = ", ".join(
x.refseq_hgvs_p or x.refseq_hgvs_c for x in anno["variants"] if x.refseq_gene_id
x.refseq_hgvs_p or x.refseq_hgvs_c
for x in anno["variants"]
if x.refseq_gene_id and (x.refseq_hgvs_p or x.refseq_hgvs_c)
)
effects = ", ".join(
"&".join(x.refseq_effect) for x in anno["variants"] if x.refseq_gene_id
"&".join(x.refseq_effect)
for x in anno["variants"]
if x.refseq_gene_id and x.refseq_effect
)

variant = anno["variants"][0]
Expand Down