GWAS: Perform GWA by GLM

Description Usage Arguments Value

View source: R/perform.GWA.GLM.R

Description

Perform GWA by GLM

Usage

1
GWAS(gen.data, phen.data, covs = NULL, PCA, PCs = 3)

Arguments

gen.data

A numeric genotype matrix/data.frame (rows = taxa, columns = markers).

phen.data

A phenotype matrix/data.frame (rows = taxa, column = trait scores). Only one trait is permitted.

covs

A matrix/data.frame of covariates (rows = taxa, columns = covariates)

PCA

The output list from the prcomp() function

PCs

A numerical value indicating the number of PCs to be included in the GLM equation as additional covariates to any supplied by the user

Value

A vector of p values. Each p value corresponding to one SNP tested.


wcrump/GWAS.GLM documentation built on March 30, 2020, 3:17 a.m.