Description Usage Arguments Details Value Citation References
View source: R/test_eigengene_explained_variance.R
Performs a permutation test of significance for the eigengene
1 2 | test_eigengene_explained_variance(OriginalData, Original_blockwiseModules,
target_module, permutations = 999, usebicor = FALSE, ...)
|
OriginalData |
Matrix or data frame containing the original data on which the blockwiseModules function has been run (observations in rows, variables in columns). |
Original_blockwiseModules |
output of the blockwiseModules function |
target_module |
module whose largest eigenvalue/eigengene will be tested |
permutations |
number of permutations to use |
usebicor |
whether one should use the standard eigengene function in WGCNA (default), or bicor |
... |
further parameters to be passed to either moduleEigengenes or bicor |
Given a dataset, a set of results from blockwiseModules, and a target module, this function performs a permutation test of the variance explained by the eigengene (first eigenvalue of the correlation matrix of the genes belonging to the module). The target module should be expressed in the same way as when using blockwiseModules (i.e., color or number) Notice that option bicor=TRUE can be extremely computationally demanding
The function outputs a list with the following elements:
The eigengenes for all the modules (will be empty if bicor=TRUE)
The observed explained variance for the target module
The p value obtained through permutation
If you use this function please cite Fruciano et al. 2019
Fruciano, C., Meyer, A., Franchini, P. 2019. Divergent allometric trajectories in gene expression and coexpression produce species differences in sympatrically speciating Midas cichlid fish. Genome Biology and Evolution 11, 1644-1657.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.