Commit 6ff10c32 authored by Mikaël Salson's avatar Mikaël Salson Committed by HERBERT Ryan
Browse files

segmenter.js: V-REGION identity % takes indels into accounts

However the value may not be defined (when there are no indels),
in which case it is empty. In such a case we fallback to the
identity % without indels.
parent 7525317c
......@@ -576,8 +576,8 @@ Segment.prototype = {
identity = clone.seg.imgt["V-REGION identity % (with ins/del events)"]
if (typeof identity != 'undefined' && identity.length == 0)
identity = clone.seg.imgt["V-REGION identity %"]
var identityRate = parseFloat(identity)
if (identityRate != NaN) {
if (identity != NaN) {
var identityRate = parseFloat(identity)
info = document.createElement('span');
if (V_IDENTITY_THRESHOLD)
info.className += identityRate < V_IDENTITY_THRESHOLD ? ' identityGood' : ' identityBad'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment