mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-31 03:32:10 -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:
|
||||
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 \\
|
||||
--REFERENCE $fasta \\
|
||||
--URI $fasta
|
||||
$options.args
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
process {
|
||||
cpus = 2
|
||||
memory = 6.GB
|
||||
time = 48.h
|
||||
}
|
||||
|
||||
if ("$PROFILE" == "singularity") {
|
||||
singularity.enabled = true
|
||||
singularity.autoMounts = true
|
||||
|
|
Loading…
Reference in a new issue