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

Commit

Permalink
Added seed parameters for AUCell step
Browse files Browse the repository at this point in the history
- Resolves #13
  • Loading branch information
cflerin committed Feb 28, 2020
1 parent 999a1a1 commit 73a57d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions processes/aucell.nf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ process AUCELL {
throw new Exception("walltime is missing in params.sc.scenic.aucell")
}
outputFileName = "numRuns" in toolParams && toolParams.numRuns > 1 ? sampleId + "__run_" + runId +"__auc_" + type + ".loom": sampleId + "__auc_" + type + ".loom"
seed = "numRuns" in toolParams && toolParams.numRuns > 1 ? (params.seed + runId) : params.seed
"""
pyscenic aucell \
$filteredLoom \
$regulons \
-o "${outputFileName}" \
--cell_id_attribute ${toolParams.cell_id_attribute} \
--gene_attribute ${toolParams.gene_attribute} \
--seed ${seed} \
--num_workers ${processParams.numWorkers}
"""

Expand Down
1 change: 0 additions & 1 deletion scenic.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ params {
gene_attribute = 'Gene'
grn {
algorithm = 'grnboost2' // also available: 'genie3'
seed = ''
// cluster options:
pmem = '2gb'
maxForks = 1
Expand Down

0 comments on commit 73a57d8

Please sign in to comment.