Skip to content

Commit

Permalink
Merge pull request #2635 from Clinical-Genomics/polish_str_filter
Browse files Browse the repository at this point in the history
chr pos split js safer for STR view
  • Loading branch information
dnil authored May 19, 2021
2 parents 3e13d99 + 6a188c1 commit ef9f24c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ About changelog [here](https://keepachangelog.com/en/1.0.0/)
- Old STR causatives (and other variants) may not have HGNC symbols - fix sort lambda
- Check if gene_obj has primary_transcript before trying to access it
- Warn if a gene manually searched is in a clinical panel with an outdated name when filtering variants
- ChrPos split js not needed on STR page yet
### Changed
- Remove parsing of case `genome_version`, since it's not used anywhere downstream
- Introduce deprecation warning for Loqus configs that are not dictionaries
Expand Down
6 changes: 5 additions & 1 deletion scout/server/blueprints/variants/static/form_scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
function populateCytobands(cytobands){
var chromPosPattern = new RegExp("^(?:chr)?([1-9]|1[0-9]|2[0-2]|X|Y|MT)$");
var chrom = document.forms["filters_form"].elements["chrom"].value;
var chromPos = document.forms["filters_form"].elements["chrom_pos"].value;
var chromPos = "";
if (typeof document.forms["filters_form"].elements["chrom_pos"] !== "undefined") {
chromPos=document.forms["filters_form"].elements["chrom_pos"].value;
}

var chromosome = "";
console.log("Populate cytobands")
var matchedChrName = chromPos.match(chromPosPattern)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@

window.onload=function() {
populateCytobands({{cytobands|safe}});

{{ update_stash_filter_button_status(current_user, filters) }}
}

Expand Down

0 comments on commit ef9f24c

Please sign in to comment.