Skip to contents

Reads the per-chromosome polyfun `.annot.gz` files in a directory and stacks them into a single data.frame of CHR, SNP, and the annotation columns. This is the I/O step feeding the annot slot of SldscData; the computation (computeSldscAnnotSd, isBinarySldscAnnot) then runs on the loaded table, not on paths.

Usage

readSldscAnnot(targetAnnoDir, annotCols = NULL)

Arguments

targetAnnoDir

Character. Directory of `.annot.gz` files.

annotCols

Character or integer vector, default NULL. Annotation columns to keep. NULL keeps all non-standard columns (auto-detected).

Value

A data.frame: CHR, SNP, and annotation columns.