QBMS

This R package assists breeders in linking data systems with their analytic pipelines, a crucial step in digitizing breeding processes. It supports querying and retrieving phenotypic and genotypic data from systems like EBS, BMS, BreedBase, and GIGWA (using BrAPI calls). Extra helper functions support environmental data sources, including TerraClimate and FAO HWSDv2 soil database.

BreedBase

Breedbase is a comprehensive breeding management and analysis software. It can be used to design field layouts, collect phenotypic information using tablets, support the collection of genotyping samples in a field, store large amounts of high density genotypic information, and provide Genomic Selection related analyses and predictions.

BrAPI

The Breeding API (BrAPI) project is an effort to enable interoperability among plant breeding databases. BrAPI is a standardized RESTful web service API specification for communicating plant breeding data. This community driven standard is free to be used by anyone interested in plant breeding data management.

Install

install.packages("remotes")
remotes::install_github("icarda-git/QBMS")

You can find a set of Breedbase based servers available for several crops and accessible with no authentication required are listed at the BrAPI website on the following page under the group of Boyce Thompson Institute (BTI), discovery and innovation in the life sciences: https://brapi.org/servers.

Example

# load the QBMS library
library(QBMS)

# Cassava BreedBase server
set_qbms_config("https://cassavabase.org/brapi/v1/calls/", 
                time_out = 300, no_auth = TRUE, engine = "breedbase")

# login_breedbase("username", "password")

# list supported crops in the current BreedBase server
list_crops()

# select a crop by name
set_crop("Cassava")

# list all breeding programs in the selected crop
list_programs()

# select a breeding program by name
set_program("IITA")

# list all studies/trials in the selected program
list_trials()

# select a specific study/trial by name
set_trial("20_Abuja")

# list all environments/locations information in the selected study/trial
list_studies()

# select a specific environment/location by name
set_study("20NCRP12yrtAB")

# another option, select a specific study by location name (first match)
# studies <- list_studies()
# set_study(studies[studies$locationName == "Abuja", "studyName"][1])

# retrieve general information, data, and germplasm list 
# of the selected environment/location
info <- get_study_info()
data <- get_study_data()
germplasm <- get_germplasm_list()

# get observation variable ontology in the selected study/trial
ontology <- get_trial_obs_ontology()

# retrieve multi-environment trial data of the selected study/trial
MET <- get_trial_data()


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