Skip to content

Commit

Permalink
Fix zero falsy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Nov 13, 2024
1 parent 3d1ebd8 commit c9712c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/local/scanpy/filter/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ process SCANPY_FILTER {
task.ext.when == null || task.ext.when

script:
min_genes = meta.min_genes ?: 1
min_cells = meta.min_cells ?: 1
min_counts_gene = meta.min_counts_gene ?: 1
min_counts_cell = meta.min_counts_cell ?: 1
max_mito_percentage = meta.max_mito_percentage ?: 100
min_genes = meta.containsKey("min_genes") ? meta.min_genes : 1
min_cells = meta.containsKey("min_cells") ? meta.min_cells : 1
min_counts_gene = meta.containsKey("min_counts_gene") ? meta.min_counts_gene : 1
min_counts_cell = meta.containsKey("min_counts_cell") ? meta.min_counts_cell : 1
max_mito_percentage = meta.containsKey("max_mito_percentage") ? meta.max_mito_percentage : 100
prefix = task.ext.prefix ?: "${meta.id}"
template 'filter.py'
}

0 comments on commit c9712c8

Please sign in to comment.