Identifyprincipal components (PCs) that are significantly associated with eQTLs and genes
Identifyprincipal components (PCs) that are significantly associated with eQTLs and genes
This function identifies PCs that are significantly associated the eQTLs or genes, and merge the associated PCs with the data on the eQTL and genes. PCs may be derived from Principal Component Analysis (PCA) of the entire gene expression matrix, and may be viewed as potential confounders in the sequent causal network analysis on the eQTLs and genes. See details in Badsha and Fu (2019) and Badsha et al. (2021).
no.PCs: Number of top PCs to test for association. The default is 10.
data: Data of the eQTLs and genes, containing the genotypes of the eQTLs and the expression of the genes.
fdr.level: (optional) The false discover rate (FDR) for association tests. Must be in (0,1]. The default is "0.05".
corr.threshold: (optional). The default is "FALSE". If "TRUE" then a constraint on the correlation between a PC and an eQTL or a gene is applied in addition to the FDR control.
corr.value: The threshold for the Pearson correlation between a PC and an eQTL or a gene when corr.threshold is "TRUE". The default is 0.3.
Returns
A list of object that containing the following:
AssociatedPCs: All the PCs that are significantly associated with the eQTLs and genes.
data.withPC: The data matrix that contains eQTLs, gene expression, and associated PCs.
corr.PCs: The matrix of correlations between PCs and eQTLs/genes.
PCs.asso.list: List of all associated PCs for each of the eQTLs and genes.
qobj: The output from applying the qvalue function.