Skip to content

Commit 95ed4ec

Browse files
committed
update config
1 parent 0b6cd21 commit 95ed4ec

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

modules/local/cogaps.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
process COGAPS {
22
tag "$meta.id"
33
label 'process_medium'
4-
container 'ghcr.io/fertiglab/cogaps@sha256:ce86acbf8677e6ac1dbfcbdb4ccb1fbd7189234eca84df93efd69f1c4d8b7f22'
4+
container 'ghcr.io/fertiglab/cogaps:master'
55

66
input:
77
tuple val(meta), path(dgCMatrix)
@@ -35,8 +35,8 @@ process COGAPS {
3535
nPatterns = $params.npatterns,
3636
sparseOptimization = as.logical($params.sparse),
3737
distributed=$params.distributed);
38-
params <- setDistributedParams(params, nSets = 7);
39-
cogapsResult <- CoGAPS(data = data, params = params)
38+
params <- setDistributedParams(params, nSets = $params.nsets);
39+
cogapsResult <- CoGAPS(data = data, params = params, nThreads = $params.nthreads);
4040
saveRDS(cogapsResult, file = "${prefix}/cogapsResult.rds")'
4141
4242
cat <<-END_VERSIONS > versions.yml

nextflow.config

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
params {
33
outdir = 'out'
44
input = ''
5+
6+
//cogaps params
57
npatterns = 8
68
nsets = 7
7-
niterations = 1000
9+
niterations = 100
810
sparse = 1
911
seed = 42
1012
distributed = '"genome-wide"'
13+
nthreads = 1
1114

12-
max_memory = '128.GB'
13-
max_cpus = 8
15+
max_memory = '8.GB'
16+
max_cpus = 4
1417
max_time = '48.h'
1518
}
1619

0 commit comments

Comments
 (0)