This file contains functions for performing Quantile Transcriptome-Wide Association Studies (TWAS) weight calculations and Quantile QTL analysis. It provides tools for screening quantile regression results, performing LD clumping and pruning, and calculating TWAS weights.
Usage
qr_screen(
X,
Y,
Z = NULL,
tau.list = seq(0.05, 0.95, by = 0.05),
screen_threshold = 0.05,
screen_method = "qvalue",
top_count = 10,
top_percent = 15
)Arguments
- X
Matrix of predictors
- Y
Matrix or vector of response variables
- Z
Matrix of covariates (optional)
- tau.list
Vector of quantiles to be analyzed
- screen_threshold
Significance threshold for adjusted p-values
- screen_method
Method for p-value adjustment ('fdr' or 'qvalue')
- top_count
Number of top SNPs to select
- top_percent
Percentage of top SNPs to select