Skip to content

Commit

Permalink
Another fix to variant annotation export (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Feb 2, 2022
1 parent 7c2012a commit d4f3e3f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions variants/views.py
Expand Up @@ -1564,7 +1564,11 @@ def yield_rows(self, *, case, cases, project):
if x.refseq_gene_id and x.refseq_effect
)

variant = anno["variants"][0]
coord_candidates = anno["variants"] + anno["flags"] + anno["comments"]
if anno["acmg_rating"]:
coord_candidates += [anno["acmg_rating"]]
coord = coord_candidates[0]

if not anno["flags"]:
row_flags = ["N/A"] * 12
else:
Expand All @@ -1585,11 +1589,11 @@ def yield_rows(self, *, case, cases, project):
row = (
[
case_uuid_to_name[case_uuid],
variant.release,
variant.chromosome,
variant.start,
variant.reference,
variant.alternative,
coord.release,
coord.chromosome,
coord.start,
coord.reference,
coord.alternative,
genes,
transcripts,
hgvs,
Expand Down

0 comments on commit d4f3e3f

Please sign in to comment.