Skip to content

Commit

Permalink
look for any LoF in flags
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Apr 11, 2019
1 parent 81ec01e commit f39f3c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/js/controller.browserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
// TODO Move to function later
let mapFunction = function(variant) {
variant.isPass = variant.filter == "PASS";
variant.isLof = variant.flags == "LC LoF";
if (variant.flags.indexOf("LoF" == -1))
variant.isLof = false;
else
variant.isLof = true;
variant.isMissense = variant.majorConsequence == "missense";
};
localThis.variants.map(mapFunction);
Expand Down

0 comments on commit f39f3c8

Please sign in to comment.