These are chat archives for nextflow-io/nextflow

15th
May 2015
Simon Ye
@yesimon
May 15 2015 03:32
Can I set directives like 'time' dynamically? For example I want to set a cluster time limit that scales with the size of an input fasta file. Otherwise I have to set it at the largest value among all inputs I want to run.
Paolo Di Tommaso
@pditommaso
May 15 2015 06:57
@yesimon Yes, you can do that using a closure. For example:
process foo {
    time {  your rule here ..  }
    """
    echo bar
    """
}