Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed May 13, 2020
1 parent b4d08ae commit 18c53c4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions processes/runPCACV.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,27 @@ process PCACV__FIND_OPTIMAL_NPCS {

container params.pcacv.container
publishDir "${params.global.outdir}/data/intermediate", mode: 'symlink'
clusterOptions "-l nodes=1:ppn=${params.global.threads} -l walltime=1:00:00 -A ${params.global.qsubaccount}"
clusterOptions "-l nodes=1:ppn=${processParams.nCores} -l walltime=1:00:00 -A ${params.global.qsubaccount}"

input:
tuple val(sampleId), path(f)
tuple \
val(sampleId), \
path(f)

output:
tuple val(sampleId), stdout, emit: optimalNumberPC
tuple val(sampleId), path("${sampleId}.PCACV__FIND_OPTIMAL_NPCS.*")
tuple \
val(sampleId), \
stdout, \
emit: optimalNumberPC
tuple \
val(sampleId), \
path("${sampleId}.PCACV__FIND_OPTIMAL_NPCS.*")

script:
def sampleParams = params.parseConfig(sampleId, params.global, params.pcacv.find_optimal_npcs)
processParams = sampleParams.local
"""
export OPENBLAS_NUM_THREADS=${processParams.nCores}
${binDir}/run_pca_cv.R \
--input-file ${f} \
--seed ${params.global.seed} \
Expand Down

0 comments on commit 18c53c4

Please sign in to comment.