elowy01
11/19/2019 - 3:23 PM

An example of dynamic memory allocation in a process

process get_cov {
        /*
        Process to run SAMTools depth on params.pos_file and get a
        pos file that will be used later
        */

        memory { 5.GB * task.attempt }
        executor 'lsf'
        queue "${params.queue}"
        cpus 1

        errorStrategy 'retry'
        maxRetries 5

        input:
        val ival from monoival_ch

        script:
        """
        echo "hello"
        """
}