Recursively builds a pedigree table by extracting and tracking parents for each genotype/germplasm in the provided list. The function handles backcross cases and updates the pedigree data frame with parent information for multiple generations.
build_pedigree_table(
geno_list = NULL,
pedigree_list = NULL,
pedigree_df = NULL
)
A data frame with three columns: - `Variety`: The identifier for the individual genotype. - `Female`: The identifier for the female parent. - `Male`: The identifier for the male parent. The pedigree is built recursively, with individuals listed before any appearance as a parent.
A character vector of genotype/germplasm names.
A character vector of associated pedigree strings, corresponding to the genotypes in geno_list
.
A data frame of pedigrees from a previous iteration, used to accumulate pedigree data. If NULL, a new data frame is created.
Khaled Al-Shamaa, k.el-shamaa@cgiar.org