if (FALSE) {
# Get G matrix.
G <- G.matrix(M = geno.pine655, method = "VanRaden", na.string = "-9", sparseform = FALSE)$G
dim(G)
# Match G and the phenotype.
check <-
match.kinship2pheno(
K = G, pheno.data = pheno.pine,
indiv = "Genotype",
clean = TRUE, mism = TRUE)
ls(check)
length(check$matchesK)
length(check$mismatchesK)
length(check$matchesP)
length(check$mismatchesP)
dim(check$Kclean)
}
Run the code above in your browser using DataLab