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

multiqc: better handling of List as input

parent b87a994a
No related branches found
No related tags found
No related merge requests found
...@@ -31,14 +31,19 @@ workflow multiqc { ...@@ -31,14 +31,19 @@ workflow multiqc {
main: main:
report report
.map{it -> .map{it ->
if (it.size() > 1){ if (it instanceof List){
it[1] if(it.size() > 1) {
it[1]
} else {
it[0]
}
} else { } else {
it it
} }
} }
.flatten() .view()
.unique() .unique()
.flatten()
.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.
Please register or to comment