Description Usage Arguments Value See Also Examples
This function performs weighted Adaptive Fisher (wAF) test for detecting association between a single trait and a set of single nucleotide variatnts (SNVs).
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Y |
Y Phenotype data. It can be a continuous trait or a binary trait. A vector or length n (number of subjects). |
X |
Genotype data. A matrix with dimensions n (number of subjects) by K (number of variants). |
binary |
Indicator of whether Y is binary. |
cov |
Covariates. A matrix with dimensions n (number of subjects) by J (number of covariates). |
w |
Weight option. Use "sd" for standard deviation weights, "flat" for flat weights. |
weight |
User-specified weights. A vector of length K (number of variants). |
adapt_perm |
Whether "step-up" algorithm is used for P-value calculation. If FALSE, function permutes nperm times and stops. If TRUE, nperm will be increased 10 times each round if P-value <= 5/nperm. Algorithm stops if P-value > 5/nperm or <= cutoff. |
cutoff |
Cutoff for "step-up" algorithm. |
nperm |
Number of permutations. Also the starting number of permutations for "step-up" algorithm. Default is 1,000. |
n0 |
Tuning parameter. Discard the first n0-1 P-values of each column. |
seed |
Specify seed for permutations. |
An object of "wAF" class.
P-value of wAF test.
Test statistic of wAF test.
Variants which are combined into the test statistic. The index of included variants are returned in the ascending order of their weighted P-values.
wAFd statistics for all permuted samples.
P-values of wAFd statistics for all permuted samples.
Method used.
Method of weighing variants, "sd" of "flat".
Vector of weights used (if "sd" or user-specified weights are used).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.