aggregate_SNPs {GWAS.BAYES} | R Documentation |
Aggregate SNPs and Y by Species
aggregate_SNPs(SNPs,Y,na.rm)
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. |
SNPs |
reduced SNP dataset |
Y |
reduced Y vector |
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)