pp.filter.fn: Filter probability matrix output by threshold

Description Usage Arguments Value

View source: R/summarise.R

Description

Filter probability matrix output by threshold

Usage

1

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.


jennasimit/MTFM documentation built on Aug. 15, 2019, 6:14 p.m.