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
3df43b64
Commit
3df43b64
authored
Oct 13, 2014
by
Marc Duez
Browse files
browser : debug some var name
parent
3782726d
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
3df43b64
...
...
@@ -272,8 +272,8 @@ Clone.prototype = {
this
.
color
=
this
.
colorJ
;
}
else
if
(
this
.
m
.
colorMethod
==
"
N
"
){
this
.
color
=
this
.
colorN
;
}
else
if
(
this
.
m
.
colorMethod
==
"
system
"
)
{
this
.
color
=
germline
.
icon
[
this
.
system
].
color
}
else
if
(
this
.
m
.
colorMethod
==
"
system
"
&&
typeof
germline
.
icon
[
this
.
germline
]
!=
'
undefined
'
)
{
this
.
color
=
germline
.
icon
[
this
.
germline
].
color
}
else
{
this
.
color
=
color
[
'
@default
'
];
}
...
...
@@ -339,18 +339,18 @@ Clone.prototype = {
//segmentation info
html
+=
"
<tr><td class='header' colspan='
"
+
(
time_length
+
1
)
+
"
'> segmentation information</td></tr>
"
if
(
typeof
this
.
seg_
stat
!=
'
undefined
'
){
if
(
typeof
this
.
stat
s
!=
'
undefined
'
){
var
total_stat
=
[];
for
(
var
i
=
0
;
i
<
this
.
seg_
stat
.
length
;
i
++
)
total_stat
[
i
]
=
0
for
(
var
i
=
0
;
i
<
this
.
seg_
stat
.
length
;
i
++
){
for
(
var
key
in
this
.
seg_
stat
[
i
])
total_stat
[
i
]
+=
this
.
seg_
stat
[
i
][
key
]
for
(
var
i
=
0
;
i
<
this
.
stat
s
.
length
;
i
++
)
total_stat
[
i
]
=
0
for
(
var
i
=
0
;
i
<
this
.
stat
s
.
length
;
i
++
){
for
(
var
key
in
this
.
stat
s
[
i
])
total_stat
[
i
]
+=
this
.
stat
s
[
i
][
key
]
}
for
(
var
key
in
this
.
seg_
stat
[
0
]){
for
(
var
key
in
this
.
stat
s
[
0
]){
html
+=
"
<tr><td>
"
+
this
.
m
.
segmented_mesg
[
key
]
+
"
</td>
"
for
(
var
i
=
0
;
i
<
time_length
;
i
++
)
{
html
+=
"
<td>
"
+
this
.
seg_
stat
[
i
][
key
]
+
"
(
"
+
((
this
.
seg_
stat
[
i
][
key
]
/
total_stat
[
i
])
*
100
).
toFixed
(
1
)
+
"
%)</td>
"
html
+=
"
<td>
"
+
this
.
stat
s
[
i
][
key
]
+
"
(
"
+
((
this
.
stat
s
[
i
][
key
]
/
total_stat
[
i
])
*
100
).
toFixed
(
1
)
+
"
%)</td>
"
}
}
}
...
...
browser/js/model.js
View file @
3df43b64
...
...
@@ -840,8 +840,8 @@ Model.prototype = {
},
getSegmentationInfo
:
function
(
timeID
)
{
if
(
typeof
this
.
samples
.
segmentation_info
!=
'
undefined
'
){
return
this
.
samples
.
segmentation_info
[
timeID
].
replace
(
/
(?:\r\n
|
\r
|
\n)
/g
,
'
<br />
'
)
if
(
typeof
this
.
samples
.
log
!=
'
undefined
'
){
return
this
.
samples
.
log
[
timeID
].
replace
(
/
(?:\r\n
|
\r
|
\n)
/g
,
'
<br />
'
)
}
else
{
return
"
not specified
"
;
}
...
...
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