Title: | Genomic Prediction of Cross Performance |
---|---|
Description: | This function performs genomic prediction of cross performance using genotype and phenotype data. It processes data in several steps including loading necessary software, converting genotype data, processing phenotype data, fitting mixed models, and predicting cross performance based on weighted marker effects. For more information, see Labroo et al. (2023) <doi:10.1007/s00122-023-04377-z>. |
Authors: | Marlee Labroo [aut], Christine Nyaga [cre, aut], Lukas Mueller [aut] |
Maintainer: | Christine Nyaga <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.1.0 |
Built: | 2024-11-07 13:42:51 UTC |
Source: | CRAN |
This is a sample phenotype dataset used for genomic prediction.
phenotypeFile
phenotypeFile
A data frame with 24 columns:
Description of ATW
Area Under Disease Progress Curve for YAD
Area Under Disease Progress Curve for YMV
Genotype IDs for each individual
Block information
Dry Matter Content values
Experimental design
Location of the trials
Number of Plants Harvested
Oxidation Index
Oxidation intensity after 180 minutes
Plot number
Replication number
Weight of the planting setts
Total Tuber Number per Plant
Total Tuber Weight per Plant
Trial name or ID
Plant vigor score
Yield values
Year of the experiment
Yield per plot in kilograms
Unadjusted Yield
Relative AUDPC for YAD
Relative AUDPC for YMV
Generated for the gpcp package example
data(phenotypeFile) head(phenotypeFile)
data(phenotypeFile) head(phenotypeFile)
Genomic Prediction of Cross Performance This function performs genomic prediction of cross performance using genotype and phenotype data.
runGPCP( phenotypeFile, genotypeFile, genotypes, traits, weights = NA, userSexes = "", userFixed = NA, userRandom = NA, Ploidy = NA, NCrosses = NA )
runGPCP( phenotypeFile, genotypeFile, genotypes, traits, weights = NA, userSexes = "", userFixed = NA, userRandom = NA, Ploidy = NA, NCrosses = NA )
phenotypeFile |
A data frame containing phenotypic data, typically read from a CSV file. |
genotypeFile |
Path to the genotypic data, either in VCF or HapMap format. |
genotypes |
A character string representing the column name in the phenotype file for the genotype IDs. |
traits |
A string of comma-separated trait names from the phenotype file. |
weights |
A numeric vector specifying weights for the traits. |
userSexes |
A string representing the column name corresponding to the individuals' sexes. |
userFixed |
A string of comma-separated fixed effect variables. |
userRandom |
A string of comma-separated random effect variables. |
Ploidy |
An integer representing the ploidy level of the organism. |
NCrosses |
An integer specifying the number of top crosses to output. |
A data frame containing predicted cross performance.
# Load phenotype data from CSV phenotypeFile <- read.csv(system.file("extdata", "phenotypeFile.csv", package = "gpcp")) genotypeFile <- system.file("extdata", "genotypeFile_Chr9and11.vcf", package = "gpcp") finalcrosses <- runGPCP( phenotypeFile = phenotypeFile, genotypeFile = genotypeFile, genotypes = "Accession", traits = "YIELD,DMC", weights = c(3, 1), userFixed = "LOC,REP", Ploidy = 2, NCrosses = 150 ) print(finalcrosses)
# Load phenotype data from CSV phenotypeFile <- read.csv(system.file("extdata", "phenotypeFile.csv", package = "gpcp")) genotypeFile <- system.file("extdata", "genotypeFile_Chr9and11.vcf", package = "gpcp") finalcrosses <- runGPCP( phenotypeFile = phenotypeFile, genotypeFile = genotypeFile, genotypes = "Accession", traits = "YIELD,DMC", weights = c(3, 1), userFixed = "LOC,REP", Ploidy = 2, NCrosses = 150 ) print(finalcrosses)