Skip to content
Discussion options

You must be logged in to vote

Hi @awast , I would recommend that you split your output declaration into multiple outputs:

      output:
      tuple val(pair_id), file(alignment_metrics_file)
      tuple val(pair_id), file(insert_size_metrics_file)
      // ...
      tuple val(pair_id), file(recal_readsbamfile), emit: recal_readsbamfile

Then, when you call this process in the workflow, you can pass individual outputs as you need them:

workflow {
    gatkrun(ch_input)

    next_process(gatkrun.out.recal_readsbamfile)
}

Going even further, it might be good to split each of these GATK commands into separate processes. That way Nextflow can parallelize these steps as much as possible.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@awast
Comment options

Answer selected by awast
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 #3668 on February 21, 2023 15:12.