Skip to contents

The /germplasm/{germplasmDbId}/pedigree endpoint this function originally called was deprecated in BrAPI v2.1. It now queries /pedigree?germplasmDbId= instead, which returns a richer record.

Usage

brapi_germplasm_pedigree(con, germplasmDbId)

Arguments

con

A brapi_connection() object.

germplasmDbId

Character. The unique germplasm identifier.

Value

A single-row tibble of the germplasm's pedigree node, with parents, siblings and progeny as list-columns of tidy tibbles. See brapi_pedigree(), which this function calls.

BrAPI endpoint

GET /pedigree - see the v2.1 specification.

Query parameters the specification defines, which may be passed through ...:

accessionNumber, collection, familyCode, binomialName, genus, species, synonym, includeParents, includeSiblings, includeProgeny, includeFullTree, pedigreeDepth, progenyDepth.

Examples

# \donttest{
con <- brapi_connection("https://test-server.brapi.org")
brapi_germplasm_pedigree(con, "germplasm1")
#> # A tibble: 1 × 15
#>   additionalInfo externalReferences breedingMethodDbId breedingMethodName
#>   <lgl>          <lgl>              <chr>              <chr>             
#> 1 NA             NA                 breeding_method1   Male Backcross    
#> # ℹ 11 more variables: crossingProjectDbId <chr>, crossingYear <int>,
#> #   defaultDisplayName <chr>, familyCode <chr>, germplasmDbId <chr>,
#> #   germplasmName <chr>, germplasmPUI <chr>, parents <list>,
#> #   pedigreeString <chr>, progeny <list>, siblings <list>
# }