get_germplasm_data: Get the observations data of a given germplasm name in a crop

View source: R/qbms.R

get_germplasm_dataR Documentation

Get the observations data of a given germplasm name in a crop

Description

This function will retrieve all the observations data available for a given germplasm in the current crop database regardless of the programs/trials nested structure.

Usage

get_germplasm_data(germplasm_name = "")

Arguments

germplasm_name

the name of the germplasm

Value

a data frame of the germplasm observations data aggregate from all trials

Author(s)

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

See Also

login_bms, set_crop, get_germplasm_attributes

Examples

if(interactive()) {
# config your BMS connection
set_qbms_config("https://bmsdev-brapi.ibp.services/ibpworkbench")

# login using your BMS account (interactive mode)
# you can pass BMS username and password as parameters (batch mode)
login_bms()

set_crop("maize")

# select a breeding program by name
set_program("MC Maize")

# retrive observations data of a given germplasm aggregated from all trials
germplasm_observations <- get_germplasm_data("BASFCORN-2-1")
}

khaled-alshamaa/QBMS documentation built on Jan. 27, 2024, 6:40 a.m.