Skip to content

Commit

Permalink
fix: typo in default_golem_opts path
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoLeist committed Mar 26, 2024
1 parent b67accd commit 9d7f39c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: '3.3'
services:
shiny:
container_name: pheno-ranker-shiny
# image: phenorankerui:${DOCKER_IMG_TAG}
image: phenorankerui:latest
image: phenorankerui:${DOCKER_IMG_TAG}
# image: phenorankerui:latest
# image: leistivo/pheno-ranker-ui:${DOCKER_IMG_TAG}
# build:
# context: phenoRankeR/deploy
Expand Down
25 changes: 5 additions & 20 deletions phenoRankeR/R/mod_patient_mode.R
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ mod_patient_mode_server <- function(

simDataPath <- paste0(
get_golem_options("simulationOutputFolder"),
# "./data/output/simulatedData/",
rv_sim$simulationId,
".",
rv$inputFormat,
Expand All @@ -703,15 +702,13 @@ mod_patient_mode_server <- function(

convDataPath <- paste0(
get_golem_options("conversionOutputFolder"),
# "./data/output/convertedData/",
paste0(rv_conversion$id,"/"),
rv_conversion$id,
".json"
)

upload_dir <- paste0(
get_golem_options("rankInputFolder"),
# "./data/uploads/rankInput/",
mode,
"/"
)
Expand Down Expand Up @@ -827,13 +824,9 @@ mod_patient_mode_server <- function(

output$phenoBlastRunId <- renderText(runId)

# cfg <- fromJSON(readLines("config/cfg.json"))
outDir <- paste0(
# dirname(getwd()),
paste0(
get_golem_options("patientModeOutputFolder"),
# cfg$patientModeOutputFolder,
# "/data/output/rankedPatients/",
timestamp,
"/"
)
Expand All @@ -848,8 +841,6 @@ mod_patient_mode_server <- function(
rv_patient$mappingDf,
file = paste0(
get_golem_options("patientModeOutputFolder"),
# cfg$patientModeOutputFolder,
# "./data/output/rankedPatients/",
rv_patient$runId,
"/",
rv_patient$runId,
Expand All @@ -858,12 +849,6 @@ mod_patient_mode_server <- function(
row.names = FALSE
)

# TODO
# add a reactive value depending if the weights
# are used or not

# it should be set to NULL if the weights editor is empty
# or if every yaml value is set to 1
weights_file_path <- NULL
if (input$yamlEditor_weights != "") {
fn <- paste0(
Expand All @@ -872,7 +857,6 @@ mod_patient_mode_server <- function(
)
weights_file_path <- file.path(
get_golem_options("weightsUploadFolder"),
# "./data/uploads/weights",
fn
)

Expand All @@ -884,15 +868,18 @@ mod_patient_mode_server <- function(

extra_config_file_path <- NULL
if (input$yamlEditor_config != "") {

extra_config_file_path <- file.path(
get_golem_options("extraConfigsUploadFolder"),
# "./data/uploads/config",
paste0(timestamp,"_config.yaml")
)

print("extra_config_file_path")
print(extra_config_file_path)

print("input$yamlEditor_config")
print(input$yamlEditor_config)

writeLines(
input$yamlEditor_config,
extra_config_file_path
Expand Down Expand Up @@ -991,8 +978,6 @@ mod_patient_mode_server <- function(
)
}

# cfg <- fromJSON(readLines("config/cfg.json"))
# phenoRankBin <- cfg$PHENO_RANK_BIN
phenoRankBin <- get_golem_options("PHENO_RANK_BIN")

cmd <- paste0(
Expand Down
17 changes: 17 additions & 0 deletions phenoRankeR/deploy/cfg_bk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"simulationOutputFolder": "/app/data/output/simulatedData/",
"ontologyUploadFolder": "/app/data/uploads/ontologies/",
"runWithDocker": "True",
"LD_LIB_PATH":"/usr/local/lib/perl5/5.36.1/x86_64-linux-gnu/CORE",
"PHENO_SIM_BIN": "/opt/pheno-ranker/sim/create_random_bff_pxf.pl",
"PHENO_RANK_BIN": "/opt/pheno-ranker/pheno-ranker",
"ODBCSYSINI": "/app/config/odbc",
"dbSettings": {
"driver": "PostgreSQL",
"server": "pheno-ranker-db",
"port": 5432,
"database": "shiny",
"user": "shiny",
"password": "shiny"
}
}
Binary file modified phenoRankeR/deploy/phenoRankeR_0.0.0.9011.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion phenoRankeR/deploy/run_phenoRankeR.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ default_golem_opts <- list(
cohortRankInputFolder="/app/data/uploads/rankInput/cohortMode/cohorts",

weightsUploadFolder="/app/data/uploads/weights",
extraConfigsUploadFolder="app/data/uploads/config",
extraConfigsUploadFolder="/app/data/uploads/config",
ontologyUploadFolder="/app/data/uploads/ontologies/",

simulationOutputFolder="/app/data/output/simulatedData/",
Expand Down

0 comments on commit 9d7f39c

Please sign in to comment.