Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
pre-fetch the sqlite database for the Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithKelleher committed May 23, 2024
1 parent 07eea8c commit 48434e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/ramp-server/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ install_github("ncats/RaMP-DB", force = TRUE, dependencies=TRUE)

library(RaMP)

rampDB <<- RaMP:::RaMP() # pre-load sqlite database to the container
4 changes: 3 additions & 1 deletion apps/ramp-server/plumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ library(R.cache)
library(readr)
library(ggplot2)

rampDB <<- RaMP:::RaMP()

#* @apiTitle RaMP_API
#* @apiDescription REST API for the Relational Database of Metabolomics Pathways (RaMP) Application
#* @apiVersion 1.0.1
Expand Down Expand Up @@ -520,7 +522,7 @@ function(
#' @param biospecimen Restrict background to particular biospecimen
#' @param file: File
#' @parser multi
#' @parser text
#' @parser text
#' @parser json
#' @post /api/chemical-enrichment
function(metabolites = '', file = '', biospecimen = '', background = "database") {
Expand Down

0 comments on commit 48434e0

Please sign in to comment.