mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +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 args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
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!"
|
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 \\
|
plink2 \\
|
||||||
|
--threads $task.cpus \\
|
||||||
|
--memory $mem_mb \\
|
||||||
--pfile ${pgen.baseName} \\
|
--pfile ${pgen.baseName} \\
|
||||||
$args \\
|
$args \\
|
||||||
--threads $task.cpus \\
|
|
||||||
--extract $variants \\
|
--extract $variants \\
|
||||||
--make-pgen vzs \\
|
--make-pgen vzs \\
|
||||||
--out ${prefix}
|
--out ${prefix}
|
||||||
|
|
Loading…
Reference in a new issue