install.packages("remotes")
remotes::install_github("icarda-git/QBMS")
library(QBMS)
# https://cb-qa.ebsproject.org/
# https://cbbrapi-qa.ebsproject.org/
# https://cbbrapi-qa.ebsproject.org/v2/docs#/
set_qbms_config(url = 'https://cbbrapi-qa.ebsproject.org', engine = 'ebs', brapi_ver = 'v2')
# set_token(readline('token:'))
login_oauth2(authorize_url = 'https://auth-dev.ebsproject.org/oauth2/authorize',
access_url = 'https://auth-dev.ebsproject.org/oauth2/token',
client_id = '5crahiqorgj0lppt3n9dkulkst',
client_secret = '1sf4tipbp4arj3d5cncjmrvk9c2cu30gor5618hnh8rgkp6v5fs')
list_programs()
set_program('Irrigated South-East Asia')
# startDate is always null in /brapi/v2/trials?programDbId=
list_trials()
set_trial('CORB-5272 -test1')
list_studies()
set_study('CORB-5272 -test1-001')
info <- get_study_info()
# calculated trait name included in the "observationVariables"
# but calculated trait values not exists in the "data" (e.g., Plant height_AVG)
# https://ebsproject.atlassian.net/servicedesk/customer/portal/2/ESD-4612
# https://ebsproject.atlassian.net/browse/ESD-4612
# The requested feature will be available at the end of October or November at the latest.
data <- get_study_data()
germplasm <- get_germplasm_list()
ontology <- get_trial_obs_ontology()
MET <- get_trial_data()
#' implement the /brapi/v2/germplasm?germplasmName= endpoint
# get_germplasm_id()
# get_germplasm_attributes()
#' call the /brapi/v2/observations/table?germplasmDbId= endpoint generate error 500
# get_germplasm_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.