Convert H2Estimate to S-LDSC Trait Format
Source:R/h2EstimationWrappers.R
h2EstimateToSldscTrait.RdConvert 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.
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