GLM.func: GWAS by GLM

Description Usage Arguments Value

View source: R/GLM.function.R

Description

Perform GWAS using a general linear model method incorporating principle components and additional covariates if present.

Usage

1
GLM.func(X = NULL, y = NULL, C = NULL, PCs = 1, r = 0.2)

Arguments

X

A matrix of genotype data with dimensions n x m

y

A matrix of phenotype data with dimensions n x 1

C

A matrix of covariate data with dimensions n x t

PCs

A matrix of principle components with dimensions n x ? (variable number of PCs)

r

A numeric (0-1) indicating the correlation value of any PC-covariate pair at which the PC will be exluded from model

Value

A matrix of p values with dimensions 1 x m


wcrump/GWASP documentation built on April 4, 2020, 5:54 a.m.