Description Usage Arguments Value
Conducts GWAS (per SNP association) for given genotype-phenotype data.
1 2 3 |
genodata |
Specify the entire genotype data object in SnpMatrix format |
phenodata |
Data frame with a column of sample IDs, corresponding to the row names of genodata, and a columns for the continuous outcome variable. These columns must be named "id" and "phenotype". |
family |
Specifies the link function for GLM. Default is guassian |
filename |
Output filename with path |
append |
LOGICAL whether to append output |
workers |
Number of cores to use for parallel processing of function |
flip |
In order to fit the model, genotype data is converted to numeric format using the as function from snpStats. The genotypes of each SNP are then coded as continuous, thereby taking on the value of 0, 1, and 2. To indicate the number of minor alleles instead, a flip.matrix procedure is included, which can be turned on or off using the flip argument. |
select.snps |
Subset the analysis via a vector of SNP IDs |
nSplits |
Number of SNP-wise splits that are made to the genotype data. The function runs the GWA analysis on these smaller subsets of the genotype data one at a time. After each subset has finished running the function will print a progress update onto the R console. By default this is set to 10 |
Outputs results in file with columns: "SNP", "Estimate", "Std.Error", "t-value", "p-value"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.