Skip to content

Can the config for each task of a process be dynamically changed according to the type of samples? #2343

Answered by manuelesimi
zhangzhen asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I'd say it depends on some conditions. For instance, do you have only A and B, or at the next execution would also have C and D?

Regardless, assuming the information on the type is available in a channel, options I would consider:

  1. use conditional scripts in your process to add/remove/skip commands according to the type, or
  2. branch the channel according to the type of samples and then have 2 processes, one for each type (again, it depends on how many types you expect and how complex is the process to split)

I'm not sure that using only the config file to achieve is doable because I think you'd still need to add configurable conditions to the process.

Thanks,
manuele

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bentsherman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants