qualimap/bamqc: remove unneeded variable definition

can just use task.cpus directly
This commit is contained in:
phue 2021-02-18 10:00:49 +01:00
parent b5b259a2d9
commit 0606c06a25

View file

@ -31,10 +31,8 @@ process QUALIMAP_BAMQC {
def software = getSoftwareName(task.process)
prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def threads = task.cpus
def collect_pairs = meta.single_end ? '' : '--collect-overlap-pairs'
def memory = task.memory.toGiga() + "G"
def regions = use_gff ? "--gff $gff" : ''
def strandedness = 'non-strand-specific'
@ -56,7 +54,7 @@ process QUALIMAP_BAMQC {
-p $strandedness \\
$collect_pairs \\
-outdir $prefix \\
-nt $threads
-nt $task.cpus
echo \$(qualimap 2>&1) | sed 's/^.*QualiMap v.//; s/Built.*\$//' > ${software}.version.txt
"""