Description
'Opal' Data Repository Client and 'DataSHIELD' Utils.
Description
Data integration Web application for biobanks by 'OBiBa'. 'Opal' is the core database application for biobanks. Participant data, once collected from any data source, must be integrated and stored in a central data repository under a uniform model. 'Opal' is such a central repository. It can import, process, validate, query, analyze, report, and export data. 'Opal' is typically used in a research center to analyze the data acquired at assessment centres. Its ultimate purpose is to achieve seamless data-sharing among biobanks. This 'Opal' client allows to interact with 'Opal' web services and to perform operations on the R server side. 'DataSHIELD' administration tools are also provided.
README.md
Opal R
Opal R Client for the Opal data warehouse. Most of the web services of Opal can be reached by an opalr
function: import/export, data dictionaries, projects, tables, resources, permissions, users, DataSHIELD profiles etc.
See opalr documentation.
Installation:
# install from CRAN
install.packages("opalr")
# or install latest development version
remotes::install_github("obiba/opalr")
Basic usage:
library(opalr)
o <- opal.login('administrator', 'password', url = 'https://opal-demo.obiba.org')
# assign a table (as a data.frame) to a R symbol
opal.assign(o, 'D', 'CNSIM.CNSIM1')
# perform R operations on the server side
opal.execute(o, 'summary(D$GENDER)')
opal.execute(o, 'summary(D$LAB_GLUC)')
opal.logout(o)
Options
Some helper options can be defined to control default values and behavior:
opal.username
, the login user name (default isNULL
).opal.password
, the login user password (default isNULL
).opal.token
, the login personal access token (default isNULL
).opal.url
, the login Opal URL (default isNULL
).opal.opts
, the curl options (default isNULL
), see httr::httr_options.opal.profile
, the login profile (R servers cluster name) (default isNULL
).opal.progress
, whether to show progress bar (default isTRUE
).opal.progress.clear
, whether to clear progress bar after it is completed (default isFALSE
).opal.retry.times
, the maximum number of GET requests to attempt (default is3
, no retry when value is1
).opal.retry.quiet
, whether to print a message displaying how long until the next request (default isFALSE
).
Cookbooks
- How to perform DataSHIELD Administration
- How to manage Opal Files
- How to manage Opal Projects
- How to interact with an Opal R Session
DataSHIELD Client
See the DSOpal documentation.