Skip to content

Commit 1d5d9ce

Browse files
fix: remove regex_moo from params
1 parent 0ad29c0 commit 1d5d9ce

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

.codeocean/app-panel.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@
3131
}
3232
],
3333
"parameters": [
34-
{
35-
"id": "ZvGNzbTfFDAiJ8Lv",
36-
"category": "7Rr6IxOMDucKMImp",
37-
"name": "multiOmicDataSet file pattern",
38-
"param_name": "regex_moo",
39-
"description": "Regex pattern used to locate the multiOmicDataSet .rds file",
40-
"type": "text",
41-
"value_type": "string",
42-
"default_value": ".*\\\\.rds$"
43-
},
4434
{
4535
"id": "count_type_id",
4636
"category": "FvI4Z2eb9sjL47Jt",

code/main.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ write_csv(pkg_versions, file.path(results_dir, 'r-packages.csv'))
1919
# parse CLI arguments
2020
parser <- ArgumentParser()
2121

22-
parser$add_argument("--regex_moo", type="character", default=".*\\.rds$")
2322
parser$add_argument("--count_type", type="character", default="filt")
2423
parser$add_argument("--sub_count_type", type="character", default=NULL, help="Sub count type if count_type is a list")
2524
parser$add_argument("--feature_id_colname", type="character", default=NULL, help="Column name for feature IDs")
@@ -51,11 +50,12 @@ parse_vector_with_default <- function(x, default) {
5150
}
5251

5352
# validate inputs
53+
regex_moo <- ".*\\.rds$"
5454
data_files <- list.files(file.path('../data'), recursive = TRUE, full.names = TRUE)
55-
moo_files <- Filter(\(x) str_detect(x, regex(args$regex_moo, ignore_case = TRUE)), data_files)
55+
moo_files <- Filter(\(x) str_detect(x, regex(regex_moo, ignore_case = TRUE)), data_files)
5656

5757
if (length(moo_files) == 0) {
58-
stop(glue("No files matching regex: {args$regex_moo}"))
58+
stop(glue("No files matching regex: {regex_moo}"))
5959
}
6060
moo_filename <- moo_files[1]
6161
moo <- read_rds(moo_filename)

0 commit comments

Comments
 (0)