mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
set memory in MB (#1260)
Co-authored-by: Sateesh <33637490+sateeshperi@users.noreply.github.com>
This commit is contained in:
parent
fe4eb459fb
commit
4ab098733a
1 changed files with 3 additions and 1 deletions
|
@ -23,11 +23,13 @@ process PLINK2_EXTRACT {
|
|||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
if( "$pgen" == "${prefix}.pgen" ) error "Input and output names are the same, use \"task.ext.prefix\" in modules.config to disambiguate!"
|
||||
def mem_mb = task.memory.toMega()
|
||||
"""
|
||||
plink2 \\
|
||||
--threads $task.cpus \\
|
||||
--memory $mem_mb \\
|
||||
--pfile ${pgen.baseName} \\
|
||||
$args \\
|
||||
--threads $task.cpus \\
|
||||
--extract $variants \\
|
||||
--make-pgen vzs \\
|
||||
--out ${prefix}
|
||||
|
|
Loading…
Reference in a new issue