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

Commit

Permalink
Use seed for nondeterministic processes vib-singlecell-nf/vsn-pipelin…
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed Feb 14, 2020
1 parent 7a9a038 commit b0016b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions processes/grnboost2withoutDask.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ process GRNBOOST2_WITHOUT_DASK {

script:
outputFileName = "numRuns" in toolParams && toolParams.numRuns > 1 ? sampleId + "__run_" + runId +"__adj.tsv" : sampleId + "__adj.tsv"
seed = "numRuns" in toolParams && toolParams.numRuns > 1 ? (params.seed + runId) : params.seed
"""
${binDir}grnboost2_without_dask.py \
$filteredLoom \
$tfs \
--output ${outputFileName} \
--num_workers ${processParams.numWorkers} \
--cell_id_attribute ${toolParams.cell_id_attribute} \
--gene_attribute ${toolParams.gene_attribute}
--gene_attribute ${toolParams.gene_attribute} \
--seed ${seed}
"""

}

/* options to implement:
--seed ${params.grn.seed} \
flag parameters not yet implemented:
--transpose
*/

0 comments on commit b0016b2

Please sign in to comment.