Skip to contents

Computes 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.

Usage

computeSldscAnnotSd(sldscData, mafCutoff = 0.05, annotCols = NULL)

Arguments

sldscData

An SldscData object (its annot and frq slots 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.

Value

Named numeric vector of \(sd_C\) values, one per annotation.