Filter probability matrix output by threshold

pp.filter.fn(pp, pthr)

Arguments

pp

Matrix of probabilities: rows are kappa values; columns are SNPs (MPP matrix) or models (PP matrix)

pthr

Threshold for keeping probabilities from SNPs/models that are greater than pthr for at least one kappa value

Value

Probability matrix with the same rows as input matrix, but only columns with the maximum probability greater than the threshold are retained.