Learn R Programming

QBMS (version 1.0.0)

get_trial_obs_ontology: Get the Traits Ontology/Metadata of the Current Active Trial

Description

Retrieves the traits ontology/metadata of the current active trial as configured in the internal state object using the `set_trial()` function.

Usage

get_trial_obs_ontology()

Arguments

Value

A data frame of the traits ontology/metadata.

Author

Khaled Al-Shamaa, k.el-shamaa@cgiar.org

See Also

login_bms, set_crop, set_program, set_trial

Examples

Run this code
if(interactive()) {
  # Configure your server connection
  set_qbms_config("https://bms.icarda.org/ibpworkbench")

  # Login using your account (interactive mode)
  # You can pass your username and password as parameters (batch mode)
  login_bms()

  # Select a crop by name
  set_crop("wheat")

  # Select a breeding program by name
  set_program("Wheat International Nurseries")

  # Select a specific study/trial by name
  set_trial("IDYT39")

  # Get observation variable ontology
  ontology <- get_trial_obs_ontology()
}

Run the code above in your browser using DataLab