latentGWAS.Rd
GWAS for latent factors at one variant using observed trait GWAS summary statistics
latentGWAS(
obsGWAS,
covY,
L,
beta_colname = "BETA",
se_colname = "SE",
snpID_colname = "SNP",
EAF
)
list of observed GWAS data.frames, containing the effect estimates and standard errors and snp names, at a minimum
trait covariance matrix (same as used in factor analysis)
PxK matrix of factor loadings generated from a factor analysis of P observed traits and K latent factors (K<P)
text column name for the effect estimates in each obsGWAS data.frame; default "BETA"
text column name for the effect estimate standard errors in each obsGWAS data.frame; default "SE"
text column name for the effect estimates in each obsGWAS data.frame; default "SNP"
vector of effect allele frequencies in same order as variants in obsGWAS
list of latent GWAS results in format for flashfmZero, with columns rsID, beta, EAF, beta_se, p-value