Skip to content

Commit

Permalink
Fix end coorinates in ClinVar for for indels (#4593)
Browse files Browse the repository at this point in the history
Co-authored-by: Chiara Rasi <rasi.chiara@gmacil.com>
  • Loading branch information
northwestwitch and Chiara Rasi committed Apr 25, 2024
1 parent 51ee90f commit aa29c89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Fix ClinVar form parsing to not include ":" in conditionType.id when condition conditionType.db is Orphanet
- Fix condition dropdown and pre-selection on ClinVar form for cases with associated ORPHA diagnoses
- Improved visibility of ClinVar form in dark mode
- End coordinates for indels in ClinVar form

## [4.81]
### Added
Expand Down
4 changes: 2 additions & 2 deletions scout/server/blueprints/clinvar/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _get_snv_var_form(variant_obj, case_obj):
var_form.variations_ids.data = var_ids.split(";")[0]
var_form.chromosome.data = variant_obj.get("chromosome")
var_form.start.data = variant_obj.get("position")
var_form.stop.data = variant_obj.get("position")
var_form.stop.data = variant_obj.get("end")
return var_form


Expand Down Expand Up @@ -276,7 +276,7 @@ def parse_variant_form_fields(form):
clinvar_var["variations_ids"] = form["dbsnp_id"]

if clinvar_var.get("ref_seq") and clinvar_var.get("hgvs"):
# Variant is described by RefSeq and HGVS already, remove redundanti fields from submission
# Variant is described by RefSeq and HGVS already, remove redundant fields from submission
for item in ["chromosome", "start", "stop", "ref", "alt"]:
clinvar_var.pop(item)

Expand Down

0 comments on commit aa29c89

Please sign in to comment.