mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-03 04:52:09 -05:00
fix: remove memory requirements and simplify URI
This commit is contained in:
parent
30e3f2c5f5
commit
28dc9227d7
2 changed files with 8 additions and 7 deletions
|
@ -27,10 +27,17 @@ process GATK_CREATESEQUENCEDICTIONARY {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def software = getSoftwareName(task.process)
|
def software = getSoftwareName(task.process)
|
||||||
|
def avail_mem = 6
|
||||||
|
if (!task.memory) {
|
||||||
|
log.info '[GATK] Available memory not known - defaulting to 6GB. Specify process memory requirements to change this.'
|
||||||
|
} else {
|
||||||
|
avail_mem = task.memory.giga
|
||||||
|
}
|
||||||
"""
|
"""
|
||||||
gatk --java-options "-Xmx${task.memory.toGiga()}g" \\
|
gatk --java-options "-Xmx${avail_mem}g" \\
|
||||||
CreateSequenceDictionary \\
|
CreateSequenceDictionary \\
|
||||||
--REFERENCE $fasta \\
|
--REFERENCE $fasta \\
|
||||||
|
--URI $fasta
|
||||||
$options.args
|
$options.args
|
||||||
|
|
||||||
echo \$(gatk CreateSequenceDictionary --version 2>&1) | sed 's/^.*(GATK) v//; s/ HTSJDK.*\$//' > ${software}.version.txt
|
echo \$(gatk CreateSequenceDictionary --version 2>&1) | sed 's/^.*(GATK) v//; s/ HTSJDK.*\$//' > ${software}.version.txt
|
||||||
|
|
|
@ -5,12 +5,6 @@ params {
|
||||||
singularity_pull_docker_container = false
|
singularity_pull_docker_container = false
|
||||||
}
|
}
|
||||||
|
|
||||||
process {
|
|
||||||
cpus = 2
|
|
||||||
memory = 6.GB
|
|
||||||
time = 48.h
|
|
||||||
}
|
|
||||||
|
|
||||||
if ("$PROFILE" == "singularity") {
|
if ("$PROFILE" == "singularity") {
|
||||||
singularity.enabled = true
|
singularity.enabled = true
|
||||||
singularity.autoMounts = true
|
singularity.autoMounts = true
|
||||||
|
|
Loading…
Reference in a new issue