Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
8b4494ec
Commit
8b4494ec
authored
Aug 29, 2016
by
Mathieu Giraud
Browse files
js/segmenter.js: add V mutation %, as computed by IMGT/V-QUEST
parent
59cf5735
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/segmenter.js
View file @
8b4494ec
...
...
@@ -562,6 +562,26 @@ Segment.prototype = {
if
(
info
)
productive_info
.
appendChild
(
info
);
// V mutation ratio
var
Vmutation_info
=
document
.
createElement
(
'
span
'
);
Vmutation_info
.
className
=
"
mutationBox
"
;
var
info
=
''
;
if
(
clone
.
seg
.
imgt
!=
null
){
mutation
=
clone
.
seg
.
imgt
[
"
V-REGION identity %
"
]
if
(
mutation
!=
NaN
)
{
info
=
document
.
createElement
(
'
span
'
);
info
.
appendChild
(
document
.
createTextNode
((
100
-
parseFloat
(
mutation
)).
toFixed
(
2
)
+
"
%
"
))
info
.
setAttribute
(
'
title
'
,
'
V-REGION mutation %, as computed by IMGT/V-QUEST
'
)
}
}
if
(
info
)
Vmutation_info
.
appendChild
(
info
);
// Gather all elements
div_elem
.
appendChild
(
seq_name
);
...
...
@@ -570,6 +590,7 @@ Segment.prototype = {
div_elem
.
appendChild
(
productive_info
);
div_elem
.
appendChild
(
svg_star
);
div_elem
.
appendChild
(
seq_size
);
div_elem
.
appendChild
(
Vmutation_info
);
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment