Skip to contents

Convert an H2Estimate object into the list format expected by standardizeSldscTrait and metaSldscRandom. This bridges the h2 estimation methods (LDER, gLDSC, HDL) into the sldscWrapper.R postprocessing pipeline.

Usage

h2EstimateToSldscTrait(h2Est)

Arguments

h2Est

An H2Estimate object with enrichment and tauBlocks.

Value

A named list matching the format of readSldscTrait:

categories

Character vector of annotation names

tau

Named numeric vector of per-annotation coefficients

tauSe

Named numeric vector of tau standard errors

enrichment

Named numeric vector of enrichment ratios

enrichmentSe

Named numeric vector of enrichment SEs

enrichmentP

Named numeric vector of enrichment p-values

propH2

Named numeric vector of proportion of h2

propSnps

Named numeric vector of proportion of SNPs

h2g

Numeric scalar, global h2 estimate

tauBlocks

Matrix (nBlocks x nCategories) for jackknife

nBlocks

Integer, number of jackknife blocks