Compute per-annotation standard deviation, MAF-restricted
Source:R/sldscWrapper.R
computeSldscAnnotSd.RdComputes the standard deviation of each annotation column in the target annotation files, restricted to SNPs above a MAF cutoff via PLINK `.frq` files. Required for internal consistency with polyfun's regression, which operates on MAF > cutoff SNPs by default.
Arguments
- sldscData
An
SldscDataobject (itsannotandfrqslots supply the annotation values and MAF, respectively).- mafCutoff
Numeric, default `0.05`. Requires frq data when > 0.
- annotCols
Character or integer vector, default NULL. Annotation columns to compute sd for. If NULL, all annotation columns are used.