single_snp_association {martini} | R Documentation |
Calculate the association between genotypes and a phenotype, adjusting by covariates.
single_snp_association( gwas, covars, score, samples = rep(TRUE, nrow(gwas[["fam"]])) )
covars |
A data frame with the covariates. It must contain a column 'sample' containing the sample IDs, and an additional columns for each covariate. |
score |
String with the association test to perform. Possible values: chi2, glm. |
genotypes |
A SnpMatrix object with the genotype information. |
phenotypes |
A numeric vector with the phenotypes. |
A named vector with the association scores.