Title: | Dynamic Aggregation Testing |
---|---|
Description: | A multiple testing procedure aims to find the rare-variant association regions. When variants are rare, the single variant association test approach suffers from low power. To improve testing power, the procedure dynamically and hierarchically aggregates smaller genome regions to larger ones and performs multiple testing for disease associations with a controlled node-level false discovery rate. This method are members of the family of ancillary information assisted recursive testing introduced in Pura, Li, Chan and Xie (2021) <arXiv:1906.07757v2> and Li, Sung and Xie (2021) <arXiv:2103.11085v2>. |
Authors: | Xuechan Li [aut, cre], Jichun Xie [ctb] |
Maintainer: | Xuechan Li <[email protected]> |
License: | GPL-3 |
Version: | 0.1 |
Built: | 2025-03-11 04:31:36 UTC |
Source: | https://github.com/cran/DYNATE |
DYNATE Function to conduct hierarchical mutiple testing based on the leaf p-values
DYNATE(struct_map, L = 5, alpha = 0.05)
DYNATE(struct_map, L = 5, alpha = 0.05)
struct_map |
a data frame with both leaf information and P-value information. |
L |
maximum number of layers |
alpha |
desired FDR |
a data frame with testing results.
Li, Xuechan, Anthony Sung, and Jichun Xie. "Distance Assisted Recursive Testing." arXiv preprint arXiv:2103.11085 (2021). Pura, John, et al. "TEAM: A Multiple Testing Algorithm on the Aggregation Tree for Flow Cytometry Analysis." arXiv preprint arXiv:1906.07757 (2019).
data("p_leaf") # Set tuning parameters L <- 3 # layer number alpha <- 0.05 # desired FDR # conduct dynamic and hierarchical testing based on the leaf level p values. out <- DYNATE(struct_map=p_leaf,L=L,alpha=alpha) summary(out)
data("p_leaf") # Set tuning parameters L <- 3 # layer number alpha <- 0.05 # desired FDR # conduct dynamic and hierarchical testing based on the leaf level p values. out <- DYNATE(struct_map=p_leaf,L=L,alpha=alpha) summary(out)
p_leaf
p_leaf
p_leaf
A data frame with 16281 rows and 5 variables. Each row links to a SNP that belongs to a leaf with testing p-value<1.
snp_dat
snp_dat
snp_dat
A data frame with 210454 rows and 6 variables.
Test_Leaf The function is used to generate Leaf P-values for case-control study. Users can input the leaf information through argument struct_map. If there is not leaf information e.g. struct_map=NULL, Test_Leaf will automatically construct leaf. Argument thresh_val specifies the leaf size constructed from the function. When the argument Gmat_case and Gmat_ctrl is null, Test_Leaf will automatically generate those matrices.
Test_Leaf(snp_dat = NULL, thresh_val = 10, covars = NULL, teststat = "FET")
Test_Leaf(snp_dat = NULL, thresh_val = 10, covars = NULL, teststat = "FET")
snp_dat |
an optional data frame containing patients mutation information. If |
thresh_val |
a positive integer for leaf size. |
covars |
an optional vector about the name of covariates to be considered in the fitting process. Should be NULL (default) or a character vector. |
teststat |
the statistic used to derive p-value. Must be one of "FET" (default) or "score". |
a dataframe of rejected leafs with snp information.
data("snp_dat") # Set leaf size M M <- 5 #Construct leaves and generate leaf p-value. p.leaf <- Test_Leaf(snp_dat=snp_dat,thresh_val=M) summary(p.leaf)
data("snp_dat") # Set leaf size M M <- 5 #Construct leaves and generate leaf p-value. p.leaf <- Test_Leaf(snp_dat=snp_dat,thresh_val=M) summary(p.leaf)