Skip to content

Commit d4de02d

Browse files
committed
add cell hashing columns argument
1 parent 2537e10 commit d4de02d

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

modules/nf-core/hashsolo/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ process HASHSOLO {
88
'community.wave.seqera.io/library/scanpy:1.11.2--cc70dffaa98ddb98' }"
99

1010
input:
11-
tuple val(meta), path(input_h5ad)
11+
tuple val(meta), path(input_h5ad), val(cell_hashing_collumns)
1212
val params
1313

1414
output:

modules/nf-core/hashsolo/meta.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ input:
2727
correspond to cells and columns to genes.
2828
pattern: "*.h5ad"
2929
ontologies: []
30+
- cell_hashing_collumns:
31+
type: list
32+
description: |
33+
List of cell hashing columns to use for demultiplexing.
34+
e.g. `['hash_1', 'hash_2']`
3035
- - params:
3136
type: map
3237
description: Parameters for hashsolo.

modules/nf-core/hashsolo/templates/hashsolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
params = {}
1313

1414
adata = sc.read_h5ad("${input_h5ad}")
15-
sce.pp.hashsolo(adata, "${params}")
15+
sce.pp.hashsolo(adata, "${cell_hashing_columns}","${params}")
1616
adata.write("test/${prefix}_hashsolo.h5ad")

modules/nf-core/hashsolo/tests/main.nf.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ nextflow_process {
1616
input[0] = [
1717
[ id: 'test' ], // meta map
1818
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/10xgenomics/cellranger/hashing_demultiplexing/hashsolo_anndata.h5ad', checkIfExists: true),
19+
["Hash1", "Hash2", "Hash3"]
1920
]
2021

2122
input[1] = '' // pass nothing

0 commit comments

Comments
 (0)