Description Usage Arguments Value
Given a dataframe of phenotypes associated with sample.IDs, this function is a wrapper around bigsnpr functions to conduct linear or logistic regression on wheat. The main advantages of this function over just using the bigsnpr functions is that it automatically removes individual genotypes with missing phenotypic data and that it can run GWAS on multiple phenotypes sequentially.
1 |
df |
Dataframe of phenotypes where the first column is sample.ID |
snp |
Genomic information to include for wheat. |
type |
Character string. Type of univarate regression to run for GWAS. Options are "linear" or "logistic". |
svd |
Optional covariance matrix to include in the regression. You
can generate these using |
npcs |
Integer. Number of PCs to use for population structure correction. |
ncores |
Integer. Number of cores to use for parallelization. |
The gwas results for the last phenotype in the dataframe. That phenotype, as well as the remaining phenotypes, are saved as RDS objects in the working directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.