Skip to content

Commit

Permalink
[propr/propd] fix bug when defining the test configs
Browse files Browse the repository at this point in the history
  • Loading branch information
suzannejin committed Nov 26, 2024
1 parent 962074c commit d046847
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 148 deletions.
3 changes: 3 additions & 0 deletions modules/nf-core/propr/propd/templates/propd.R
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ opt_types <- list(

args_ext <- ifelse('$task.ext.args' == 'null', '', '$task.ext.args')
args_opt <- parse_args(args_ext)
print(args_opt)
for ( ao in names(args_opt)){
if (! ao %in% names(opt)){
stop(paste("Invalid option:", ao))
Expand Down Expand Up @@ -271,6 +272,8 @@ if (opt\$permutation < 0) {
stop('permutation should be a positive integer')
}

print(opt)

################################################
################################################
## Finish loading libraries ##
Expand Down
4 changes: 2 additions & 2 deletions modules/nf-core/propr/propd/tests/boxcox.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process {
withName: 'PROPR_PROPD' {
ext.args = ["--alpha 0.1 --round_digits 5"]
ext.args = {"--alpha 0.1 --round_digits 5"}
}
}
}
4 changes: 2 additions & 2 deletions modules/nf-core/propr/propd/tests/default.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process {
withName: 'PROPR_PROPD' {
ext.args = ["--round_digits 5"]
ext.args = {"--round_digits 5"}
}
}
}
140 changes: 0 additions & 140 deletions modules/nf-core/propr/propd/tests/main.nf.test.snap

This file was deleted.

4 changes: 2 additions & 2 deletions modules/nf-core/propr/propd/tests/permutation.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process {
withName: 'PROPR_PROPD' {
ext.args = ["--permutation 10 --number_of_cutoffs 10 --seed 123 --round_digits 5"]
ext.args = {"--permutation 10 --number_of_cutoffs 10 --seed 123 --round_digits 5"}
}
}
}
4 changes: 2 additions & 2 deletions modules/nf-core/propr/propd/tests/save_all.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
process {
withName: 'PROPR_PROPD' {
ext.args = ["--save_pairwise_full true --save_pairwise true --save_adjacency true --save_rdata true --round_digits 5"]
ext.args = {"--save_pairwise_full true --save_pairwise true --save_adjacency true --save_rdata true --round_digits 5"}
}
}
}

0 comments on commit d046847

Please sign in to comment.