Skip to content
Discussion options

You must be logged in to vote

Hi @awast , I converted your issue into a Q&A and edited your post for formatting. If I understand correctly, you want to collect all of the samples produced by the panelnormalsone process and feed them into a single run of the Genomics_DB_creation process. In that case, you should use the collect operator before the db creation process. Something like:

(samples, stats, tbi) = panelnormalsone( /* ... */ )
Genomics_DB_creation( samples.collect(), stats.collect(), tbi.collect() )

That will run your db creation process only once with all of the samples. You can construct that command line with some custom Groovy code:

script:
sampleOpts = samples.collect { p -> "-V ${p.name}" } .join(' ')
"""

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by awast
Comment options

You must be logged in to vote
4 replies
@awast
Comment options

@awast
Comment options

@bentsherman
Comment options

@awast
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #3702 on March 01, 2023 14:51.