Changes made in response to the Bioconductor review (#117).
Dmatrix() no longer mis-codes dosages that are not whole numbers. The
Vitezica genotype codes are now evaluated as the quadratic that passes
through all three of them, so dosages of 0, 1 and 2 give exactly the
published values and an expected dosage from imputation falls between them.
Previously anything other than exactly 1 or 2 was coded as the opposite
homozygote, which made the dominance matrix wrong whenever genotypes were
imputed - including under the default impute = TRUE.Dmatrix(), matching the weight that
mean imputation already gives it in Gmatrix().alleleFrequency() no longer understates observed heterozygosity after
imputation. Only genotype calls count towards it: the dosage must be a whole
number and the cell must not be marked as imputed.imputeMarkers() drops such
markers with a warning, controlled by the new drop_uncalled argument, and
the relationship matrices drop them too instead of silently returning a
matrix of NaN.BreedingExperiment() matches phenotypes to individuals by row name when
the row names are identifiers, instead of overwriting them by position.
Row names that are neither absent nor matching are now an error. Duplicated
genotype column names are rejected.Hmatrix() warns when a genotyped individual does not appear in the
pedigree, rather than dropping it silently.simulateBreeding() validates its arguments, and with n_founder = 2 can
no longer give an individual itself as both parents, which was a
consequence of sample() treating a length-one vector as 1:n. A
population of a single individual is now allowed.imputeMarkers() records which cells it filled in a logical imputed
assay, which travels with the object through subsetting and is what lets
alleleFrequency() tell an imputed dosage from a call.simulateBreeding() now scales the simulated trait so that the genetic and
residual variances are exactly h2 and 1 - h2, and trueBV is on that
scale. h2 = 0 and h2 = 1 behave as they should. Simulated breeding
values are therefore on a different scale than in earlier versions.SNPRelate, GENESIS, GeneticsPed, Pedixplorer, FamAgg and
CRAN's AGHmatrix, followed by an installation section. It now gives
guidance on choosing min_maf, min_call_rate, blend and tune, and
ends with a worked single-step BLUP: the mixed model equations solved with
H, validated by predicting a withheld generation.alue section.simulateBreeding() into helpers so no function exceeds the recommended length.QualityControl biocView.DESCRIPTION.inst/CITATION and CITATION.cff).First submission to Bioconductor.
BreedingExperiment class, extending RangedSummarizedExperiment, holds
marker genotypes, phenotypes, a pedigree and marker coordinates in one object.Amatrix() (pedigree), Gmatrix() (genomic),
Dmatrix() (dominance) and Hmatrix() (single step, combining pedigree and
genomic information so genotyped and ungenotyped individuals can be analysed
together).filterMarkers() and imputeMarkers(), plus
alleleFrequency(), inbreeding() and sortPedigree().demoBreeding, a simulated five-generation population with ungenotyped
ancestors, and simulateBreeding() for generating your own.