Skip to content

Commit a061f27

Browse files
committed
Update counts_layer usage
1 parent ef32b4e commit a061f27

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

modules/local/adata/tords/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ process ADATA_TORDS {
99

1010
input:
1111
tuple val(meta), path(h5ad)
12+
val counts_layer
1213

1314
output:
1415
tuple val(meta), path("*.rds"), emit: rds
@@ -18,7 +19,7 @@ process ADATA_TORDS {
1819
task.ext.when == null || task.ext.when
1920

2021
script:
21-
counts_layer = task.ext.counts_layer ?: 'X'
22+
counts_layer = counts_layer ?: 'X'
2223
prefix = task.ext.prefix ?: "${meta.id}"
2324
template 'tords.R'
2425

modules/local/adata/tords/tests/main.nf.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ nextflow_process {
2020
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/scrnaseq/h5ad/SRR28679756_filtered_matrix.h5ad', checkIfExists: true)
2121
]
2222
)
23+
input[1] = 'X'
2324
"""
2425
}
2526
}
@@ -48,6 +49,7 @@ nextflow_process {
4849
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/scrnaseq/h5ad/SRR28679756_filtered_matrix.h5ad', checkIfExists: true)
4950
]
5051
)
52+
input[1] = 'X'
5153
"""
5254
}
5355
}

subworkflows/local/finalize/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ workflow FINALIZE {
2727
ch_versions = ch_versions.mix(ADATA_EXTEND.out.versions)
2828

2929
ADATA_TORDS (
30-
ADATA_EXTEND.out.h5ad
30+
ADATA_EXTEND.out.h5ad,
31+
'X'
3132
)
3233
ch_versions = ch_versions.mix(ADATA_TORDS.out.versions)
3334

0 commit comments

Comments
 (0)