R/removeSiresOverMaxMissing.R

Defines functions removeSiresOverMoxMissing

Documented in removeSiresOverMoxMissing

#' Remove sires with greater than maximum missing loci
#'
#' @param scoresDf dataframe with scores from \emph{scores} object
#' @param thMissing threshold for maximum missing loci
#' @export
removeSiresOverMoxMissing <- function(scoresDf, thMissing) {
  scoresDf[(scoresDf$sireMissingLoci * 100.0 / scoresDf$sireNAlleles) <=
                       thMissing, ]
}
rmsharp/parentfindr documentation built on Nov. 29, 2020, 4:33 a.m.