Skip to content

Commit

Permalink
NXF: Automatically flatten single-file outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Aug 16, 2021
1 parent 6d5655c commit c7a3925
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,12 @@ case class NextFlowPlatform(
| : it[1].collect{ k, el -> [ it[0], el, it[2] ] }
| }""".stripMargin
} else {
""" emit:
| result_""".stripMargin
s""" emit:
| result_.flatMap{ it ->
| (it[1].keySet().size() > 1)
| ? it
| : it[1].collect{ k, el -> [ it[0], el, it[2] ] }
| }""".stripMargin
}

val setup_main_workflow =
Expand Down

0 comments on commit c7a3925

Please sign in to comment.