Description Usage Arguments Value
Given a dataframe of phenotypes associated with Taxa, this function is a wrapper around bigsnpr functions to conduct linear or logistic regression on Phaseolus vulgaris. 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 2 3 4 5 6 7 8 9 |
df |
Dataframe of phenotypes where the first column is Taxa. |
type |
Character string. Type of univarate regression to run for GWAS. Options are "linear" or "logistic". |
snp |
Genomic information to include for Phaseolus vulgaris. |
covar |
Optional covariance matrix to include in the regression. You
can generate these using |
ncores |
Number of cores to use. Default is one. |
npcs |
Number of principle components to use. Default is 10. |
saveoutput |
Logical. Should output be saved as a rds to the working directory? |
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.