Commit 1a7a8908 authored by rhpvorderman's avatar rhpvorderman

Defuture flexiprepPage method

parent 21e0eede
...@@ -60,23 +60,31 @@ object FlexiprepReport extends ReportBuilder { ...@@ -60,23 +60,31 @@ object FlexiprepReport extends ReportBuilder {
) ::: page.sections, ) ::: page.sections,
Map()) Map())
} }
def flexiprepPageSummaries(summary: SummaryDb,
sampleId: Int,
libId: Int): Map[String, Map[String, Any]] = {
val flexiprepReadSummary: Map[String, Any] = FlexiprepReadSummary.values(summary,
runId,
samples,
libraries,
sampleId,
libId,
multisample = false)
val flexiprepBaseSummary: Map[String,Any] = FlexiprepBaseSummary.values(summary,
runId,
samples,
libraries,
sampleId,
libId,
multisample = false)
Map("flexiprepReadSummary" -> flexiprepReadSummary,
"flexiprepBaseSummary" -> flexiprepBaseSummary
)
}
/** Generate a QC report page for 1 single library, sampleId and libId must be defined in the arguments */ /** Generate a QC report page for 1 single library, sampleId and libId must be defined in the arguments */
def flexiprepPage(summary: SummaryDb, sampleId: Int, libId: Int): Future[ReportPage] = { def flexiprepPage(summaries: Map[String, Map[String, Any]]): Future[ReportPage] = {
val flexiprepReadSummary = FlexiprepReadSummary.values(summary, val flexiprepBaseSummary = summaries("flexiprepBaseSummary")
runId, val flexiprepReadSummary = summaries("flexiprepReadSummary")
samples,
libraries,
sampleId,
libId,
multisample = false)
val flexiprepBaseSummary = FlexiprepBaseSummary.values(summary,
runId,
samples,
libraries,
sampleId,
libId,
multisample = false)
Future( Future(
ReportPage( ReportPage(
List(), List(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment