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
18d68291
Commit
18d68291
authored
May 12, 2017
by
Thonier Florian
Browse files
clones: add AA junction at HTML export even if non productive
link to
#2428
parent
34d26172
Pipeline
#2204
failed with stages
in 2 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
18d68291
...
...
@@ -1168,8 +1168,8 @@ Clone.prototype = {
}
}
if
(
typeof
this
.
seg
.
junction
!=
'
undefined
'
&&
this
.
seg
.
junction
.
productive
===
true
)
{
html
+=
row_1
(
"
J
unction (AA seq)
"
,
this
.
getSegAASequence
(
'
junction
'
))
this
.
seg
.
junction
.
aa
!=
"
undefined
"
)
{
html
+=
row_1
(
"
j
unction (AA seq)
"
,
this
.
getSegAASequence
(
'
junction
'
))
}
...
...
browser/test/QUnit/testFiles/clone_test.js
View file @
18d68291
...
...
@@ -99,6 +99,7 @@ QUnit.test("name, informations, getHtmlInfo", function(assert) {
var
c1
=
new
Clone
(
json_clone1
,
m
,
0
)
var
c2
=
new
Clone
(
json_clone2
,
m
,
1
)
var
c3
=
new
Clone
(
json_clone3
,
m
,
2
)
var
c4
=
new
Clone
(
json_clone4
,
m
,
3
)
m
.
initClones
()
assert
.
equal
(
c1
.
getSequenceName
(),
"
hello
"
,
"
get name clone1 : hello
"
);
...
...
@@ -193,6 +194,15 @@ QUnit.test("name, informations, getHtmlInfo", function(assert) {
"
<tr><td>V gene (or 5')</td><td colspan='4'>testV5<div class='div-menu-selector' id='listVsegment' style='display: none'>
"
,
"
getHtmlInfo: segmentation information (V gene) after changment
"
);
// Test junction in html export
assert
.
includes
(
html
,
"
<tr><td>junction</td><td colspan='4'>aat</td></tr>
"
,
"
getHtmlInfo c1: junction info for productive clone
"
);
html
=
c3
.
getHtmlInfo
();
assert
.
includes
(
html
,
"
<tr><td>junction</td><td colspan='4'>aaaaaaaaattt</td></tr>
"
,
"
getHtmlInfo c3: junction info for non productive clone
"
);
assert
.
includes
(
html
,
"
<tr><td>junction (AA seq)</td><td colspan='4'>WKIC</td></tr>
"
,
"
getHtmlInfo c3: junction (AAseq) info for non productive clone
"
);
});
QUnit
.
test
(
'
clone: get info from seg
'
,
function
(
assert
)
{
...
...
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