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
0435db8c
Commit
0435db8c
authored
Oct 02, 2016
by
marc
Browse files
export.js : report functions can use a list of samples/systems as input
parent
dbb0ac92
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/export.js
View file @
0435db8c
...
...
@@ -166,9 +166,12 @@ Report.prototype = {
}
},
reportHTML
:
function
()
{
this
.
m
.
wait
(
"
Generating report...
"
)
reportHTML
:
function
(
system_list
,
sample_list
)
{
sample_list
=
typeof
sample_list
!==
'
undefined
'
?
sample_list
:
this
.
m
.
samples
.
order
;
system_list
=
typeof
system_list
!==
'
undefined
'
?
system_list
:
this
.
m
.
system_selected
;
this
.
m
.
wait
(
"
Generating report...
"
)
this
.
switchstate
(
system_list
,
sample_list
);
var
self
=
this
this
.
w
=
window
.
open
(
"
report.html
"
,
"
_blank
"
,
"
selected=0, toolbar=yes, scrollbars=yes, resizable=yes
"
);
...
...
@@ -192,20 +195,26 @@ Report.prototype = {
self
.
info
()
.
normalizeInfo
()
.
addGraph
()
.
readsStat
()
.
addGraph
()
.
cloneList
()
.
contamination
()
.
sampleLog
()
.
restorestate
()
self
.
m
.
resize
()
self
.
m
.
resume
()
}
},
reportHTMLdiag
:
function
()
{
reportHTMLdiag
:
function
(
system_list
,
sample_list
)
{
sample_list
=
typeof
sample_list
!==
'
undefined
'
?
sample_list
:
this
.
m
.
samples
.
order
;
system_list
=
typeof
system_list
!==
'
undefined
'
?
system_list
:
this
.
m
.
system_selected
;
console
.
log
(
sample_list
);
console
.
log
(
system_list
);
this
.
m
.
wait
(
"
Generating report...
"
)
var
current_system
=
sp
.
system
this
.
switchstate
(
system_list
,
sample_list
);
var
current_system
=
sp
.
system
;
var
self
=
this
this
.
w
=
window
.
open
(
"
report.html
"
,
"
_blank
"
,
"
selected=0, toolbar=yes, scrollbars=yes, resizable=yes
"
);
...
...
@@ -235,6 +244,7 @@ Report.prototype = {
self
.
sampleLog
()
.
softwareInfo
(
self
.
m
.
t
)
.
restorestate
()
self
.
m
.
changeGermline
(
current_system
)
self
.
m
.
resize
()
...
...
@@ -247,7 +257,7 @@ Report.prototype = {
//use taged clones
var
tag
=
0
while
(
tag
<
8
&&
list
.
length
<
5
)
{
while
(
tag
<
8
&&
list
.
length
<
10
)
{
for
(
var
i
=
0
;
i
<
this
.
m
.
clones
.
length
;
i
++
)
{
var
clone_tag
=
this
.
m
.
clone
(
i
).
getTag
()
if
(
clone_tag
==
tag
&&
this
.
m
.
clone
(
i
).
isActive
&&
!
this
.
m
.
clone
(
i
).
virtual
)
list
.
push
(
i
)
...
...
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