Skip to content

Commit cb2aeec

Browse files
Merge pull request #210 from hms-dbmi/fix-blas
use default blas
2 parents 8d26ba2 + 4e8c001 commit cb2aeec

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ COPY DESCRIPTION NAMESPACE ./
8383
RUN R -e "install.packages(repos=NULL, '.')" && \
8484
find . -maxdepth 1 ! -name R -exec rm -r "{}" \;
8585

86+
# switch to default blas (fixes 'Error in if (any(above.noise))' from scran::quickCluster)
87+
RUN ARCH=$(uname -m) && \
88+
update-alternatives --set "libblas.so.3-${ARCH}-linux-gnu" "/usr/lib/${ARCH}-linux-gnu/blas/libblas.so.3" && \
89+
update-alternatives --set "liblapack.so.3-${ARCH}-linux-gnu" "/usr/lib/${ARCH}-linux-gnu/lapack/liblapack.so.3"
90+
8691
# ----------
8792
# PRODUCTION
8893
#-----------

R/run_dseqr.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ run_dseqr <- function(app_name,
8989

9090
# pass arguments to app through options then run
9191
shiny::shinyOptions(
92-
data_dir = normalizePath(data_dir),
92+
data_dir = normalizePath(data_dir, mustWork = FALSE),
9393
app_name = app_name,
94-
pert_query_dir = normalizePath(pert_query_dir),
95-
pert_signature_dir = normalizePath(pert_signature_dir),
96-
gs_dir = normalizePath(gs_dir),
97-
indices_dir = normalizePath(indices_dir),
98-
tx2gene_dir = normalizePath(tx2gene_dir),
94+
pert_query_dir = normalizePath(pert_query_dir, mustWork = FALSE),
95+
pert_signature_dir = normalizePath(pert_signature_dir, mustWork = FALSE),
96+
gs_dir = normalizePath(gs_dir, mustWork = FALSE),
97+
indices_dir = normalizePath(indices_dir, mustWork = FALSE),
98+
tx2gene_dir = normalizePath(tx2gene_dir, mustWork = FALSE),
9999
tabs = tabs,
100100
logout_url = logout_url,
101101
is_local = is_local,

inst/app/server.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ server <- function(input, output, session) {
107107
if (!is_local) {
108108
options(shiny.error = function() {
109109
observe({
110-
user_name <- user_name()
110+
user_name <- session$request$HTTP_X_SP_USERID
111111
send_slack_error(app_name, user_name)
112112
})
113113
})
@@ -206,7 +206,6 @@ server <- function(input, output, session) {
206206
projects_table <- reactive({
207207
projects <- project_choices()
208208
project <- project()
209-
req(project)
210209

211210
nsc <- sapply(projects, get_num_sc_datasets, user_dir())
212211
nbulk <- sapply(projects, get_num_bulk_datasets, user_dir())
@@ -401,7 +400,7 @@ server <- function(input, output, session) {
401400
project_dir <- reactive(file.path(user_dir(), project()))
402401
prev_path <- reactive(file.path(user_dir(), 'prev_project.qs'))
403402

404-
project <- reactiveVal()
403+
project <- reactiveVal('default')
405404

406405
observe({
407406
project(qread.safe(prev_path(), .nofile = 'default'))

0 commit comments

Comments
 (0)