aggregate_SNPs: aggregate_SNPs

Description Usage Arguments Value Examples

View source: R/all.R

Description

Aggregate SNPs and Y by Species

Usage

1
aggregate_SNPs(SNPs,Y,na.rm)

Arguments

SNPs

Standardized SNP data set where the values of each column are either 0 or 1

Y

The phenotype response of interest

na.rm

Logical value where TRUE removes NA's in response vector as well corresponding rows in SNP matrix.

Value

SNPs

reduced SNP dataset

Y

reduced Y vector

Examples

1
2
3
4
5
6
data("vignette_lm_dat")
Y <- vignette_lm_dat$Phenotype
SNPs <- vignette_lm_dat[,-1]
SNPs <- standardize(SNPs = SNPs,method = "major-minor",number_cores = 1)

aggregate_SNPs(SNPs = SNPs, Y = Y)

GWAS.BAYES documentation built on Nov. 8, 2020, 7:47 p.m.