Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
d332c9ad
Commit
d332c9ad
authored
Mar 20, 2017
by
Peter van 't Hof
Browse files
Fixing relative paths
parent
f3820b66
Changes
1
Show whitespace changes
Inline
Side-by-side
gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsReport.scala
View file @
d332c9ad
...
...
@@ -24,6 +24,7 @@ import nl.lumc.sasc.biopet.utils.summary.db.SummaryDb.{ NoLibrary, NoModule, Sam
import
scala.concurrent.Await
import
scala.concurrent.duration.Duration
import
scala.concurrent.ExecutionContext.Implicits.global
/**
* Report for Gears
...
...
@@ -42,6 +43,8 @@ object GearsReport extends MultisampleReportBuilder {
.
map
(
x
=>
ExtFile
(
"/nl/lumc/sasc/biopet/pipelines/gears/report/ext/"
+
x
,
x
))
def
indexPage
=
{
val
run
=
Await
.
result
(
summary
.
getRuns
(
runId
).
map
(
_
.
head
),
Duration
.
Inf
)
val
krakenExecuted
=
summary
.
getStatsSize
(
runId
=
runId
,
pipeline
=
"gearskraken"
,
module
=
"krakenreport"
,
library
=
NoLibrary
,
mustHaveSample
=
true
)
>=
samples
.
size
val
centrifugeExecuted
=
summary
.
getStatsSize
(
runId
,
"gearscentrifuge"
,
"centrifuge_report"
,
library
=
NoLibrary
,
mustHaveSample
=
true
)
>=
samples
.
size
val
qiimeClosesOtuTable
=
summary
.
getFile
(
runId
,
"gears"
,
key
=
"qiime_closed_otu_table"
)
...
...
@@ -59,10 +62,10 @@ object GearsReport extends MultisampleReportBuilder {
)),
Map
()))
else
Nil
)
:::
(
if
(
qiimeClosesOtuTable
.
isDefined
)
List
(
"Qiime closed reference analysis"
->
ReportPage
(
List
(),
List
(
"Krona plot"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/gears/qiimeKrona.ssp"
)),
Map
(
"biomFile"
->
new
File
(
qiimeClosesOtuTable
.
get
.
path
))))
)),
Map
(
"biomFile"
->
new
File
(
run
.
outputDir
+
File
.
separator
+
qiimeClosesOtuTable
.
get
.
path
))))
else
Nil
)
:::
(
if
(
qiimeOpenOtuTable
.
isDefined
)
List
(
"Qiime open reference analysis"
->
ReportPage
(
List
(),
List
(
"Krona plot"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/gears/qiimeKrona.ssp"
)),
Map
(
"biomFile"
->
new
File
(
qiimeOpenOtuTable
.
get
.
path
))))
)),
Map
(
"biomFile"
->
new
File
(
run
.
outputDir
+
File
.
separator
+
qiimeOpenOtuTable
.
get
.
path
))))
else
Nil
)
:::
List
(
"Samples"
->
generateSamplesPage
(
pageArgs
))
++
Map
(
"Versions"
->
ReportPage
(
List
(),
List
(
...
...
@@ -83,6 +86,7 @@ object GearsReport extends MultisampleReportBuilder {
/** Single sample page */
def
samplePage
(
sampleId
:
Int
,
args
:
Map
[
String
,
Any
])
:
ReportPage
=
{
val
run
=
Await
.
result
(
summary
.
getRuns
(
runId
).
map
(
_
.
head
),
Duration
.
Inf
)
val
krakenExecuted
=
Await
.
result
(
summary
.
getStatsSize
(
runId
,
"gearskraken"
,
"krakenreport"
,
sample
=
sampleId
,
library
=
NoLibrary
),
Duration
.
Inf
)
==
1
val
centrifugeExecuted
=
Await
.
result
(
summary
.
getStatsSize
(
runId
,
"gearscentrifuge"
,
"centrifuge_report"
,
sample
=
sampleId
,
library
=
None
),
Duration
.
Inf
)
==
1
val
qiimeClosesOtuTable
=
Await
.
result
(
summary
.
getFile
(
runId
,
"gearssingle"
,
NoModule
,
sampleId
,
NoLibrary
,
"qiime_closed_otu_table"
),
Duration
.
Inf
)
...
...
@@ -99,10 +103,10 @@ object GearsReport extends MultisampleReportBuilder {
)),
Map
()))
else
Nil
)
:::
(
if
(
qiimeClosesOtuTable
.
isDefined
)
List
(
"Qiime closed reference analysis"
->
ReportPage
(
List
(),
List
(
"Krona plot"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/gears/qiimeKrona.ssp"
)),
Map
(
"biomFile"
->
new
File
(
qiimeClosesOtuTable
.
get
.
path
))))
)),
Map
(
"biomFile"
->
new
File
(
run
.
outputDir
+
File
.
separator
+
qiimeClosesOtuTable
.
get
.
path
))))
else
Nil
)
:::
(
if
(
qiimeOpenOtuTable
.
isDefined
)
List
(
"Qiime open reference analysis"
->
ReportPage
(
List
(),
List
(
"Krona plot"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/gears/qiimeKrona.ssp"
)),
Map
(
"biomFile"
->
new
File
(
qiimeOpenOtuTable
.
get
.
path
))))
)),
Map
(
"biomFile"
->
new
File
(
run
.
outputDir
+
File
.
separator
+
qiimeOpenOtuTable
.
get
.
path
))))
else
Nil
)
:::
List
(
"Libraries"
->
generateLibraryPage
(
args
)
),
List
(
"QC reads"
->
ReportSection
(
"/nl/lumc/sasc/biopet/pipelines/flexiprep/flexiprepReadSummary.ssp"
),
...
...
Write
Preview
Supports
Markdown
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