Drops markers failing a call-rate or minor-allele-frequency threshold, and (optionally) monomorphic markers, then imputes any remaining missing values.
Value
A list with geno (the filtered, optionally imputed matrix) and
removed (a named integer vector counting markers dropped by each rule).
Examples
sim <- simulate_population(n = 50, m = 200, seed = 1)
qc <- qc_markers(sim$geno)
dim(qc$geno)
#> [1] 50 199
qc$removed
#> call_rate maf monomorphic
#> 0 1 0