cellink.at.GWAS#
- class cellink.at.GWAS(Y, F=None)#
Linear model for univariate association testing between
1phenotypes andSinputs (1`x`Stests)
Methods table#
Methods#
- GWAS.getBetaSNPste()#
get standard errors on betas
- Return type:
- Returns:
-beta_ste (
ndarray)
- GWAS.test_association(G)#
Test association between phenotype and genotype matrix.
Each column of G is tested independently from the others. The test is performed using the likelihood ratio test (LRT) statistic. The LRT statistic is computed as: .. math:
LRT = -df * log( marginal likelihood under H1 / marginal likelihood under H0 )
where s2 is the variance of the residuals of the model with the covariate and s20 is the variance of the residuals of the null model. Uses the Woodbury Matrix Identity to invert the matrix in the LRT statistic. Fit genotypes one-by-one.
- Parameters:
G ((
N,S) ndarray) – inputs- Return type: