Skip to contents

Reads the regression outputs produced by `polyfun/ldsc.py` for a single polyfun run (one trait, one annotation set) and returns them as a tidy list ready for downstream standardization. Hides the underlying file formats; downstream code consumes only modeling quantities.

Usage

read_sldsc_trait(prefix)

Arguments

prefix

Character. Path prefix to the polyfun outputs for one trait/run. The function appends `.results`, `.log`, and `.part_delete` to this prefix. Example: `"/path/to/cwd/CAD_META.filtered.sumstats.gz"`.

Value

A named list. See `sldsc_postprocessing_pipeline` for components.

Examples

if (FALSE) { # \dontrun{
run <- read_sldsc_trait("/output/CAD_META.filtered.sumstats.gz")
run$tau["my_target_annotation"]
} # }