Skip to content

Commit

Permalink
Fix Filter Genes Nextflow Flag Handling (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffquinn-msk authored Oct 23, 2023
1 parent 4a4fa7e commit df6b467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nextflow/modules/bayestme/bayestme_filter_genes/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ process BAYESTME_FILTER_GENES {
prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ""

def need_spot_threshold_flag = args.contains("--spot-threshold")
def need_expression_truth_flag = args.contains("--expression-truth")
def need_n_top_by_standard_deviation_flag = args.contains("--n-top-by-standard-deviation")
def need_filter_ribosomal_genes_flag = args.contains("--filter-ribosomal-genes")
def need_spot_threshold_flag = !args.contains("--spot-threshold")
def need_expression_truth_flag = !args.contains("--expression-truth")
def need_n_top_by_standard_deviation_flag = !args.contains("--n-top-by-standard-deviation")
def need_filter_ribosomal_genes_flag = !args.contains("--filter-ribosomal-genes")

def filter_ribosomal_genes_flag = filter_ribosomal_genes ? "" : "--filter-ribosomal-genes"
def n_top_by_standard_deviation_flag = "--n-top-by-standard-deviation ${n_top_by_standard_deviation}"
Expand Down

0 comments on commit df6b467

Please sign in to comment.