Skip to content
Snippets Groups Projects
Verified Commit a92d2e02 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

mutliqc.nf: fix flatten procedure

parent f8dba601
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ multiqc( ...@@ -16,7 +16,7 @@ multiqc(
report_b, report_b,
report_c, report_c,
report_d report_d
).collect() )
) )
*/ */
...@@ -29,8 +29,9 @@ workflow multiqc { ...@@ -29,8 +29,9 @@ workflow multiqc {
take: take:
report report
main: main:
report.map{ report
if (it instanceof List){ .map{it ->
if (it.size() > 1){
it[1] it[1]
} else { } else {
it it
...@@ -38,6 +39,7 @@ workflow multiqc { ...@@ -38,6 +39,7 @@ workflow multiqc {
} }
.flatten() .flatten()
.unique() .unique()
.view()
.set { report_cleaned } .set { report_cleaned }
multiqc_default(report_cleaned.collect()) multiqc_default(report_cleaned.collect())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment