Description Usage Arguments Details See Also Examples
View source: R/pickWGCNAParam.R
A function to help in choosing the WGCNA soft threshold parameter parameter, with a series of plot.
1 2 | pickWGCNAParam(DEGeneExpr, Alphas = c(c(1:10), seq(from = 12, to = 20, by = 2)),
AThreshold = 0.85, interactiveMode = T)
|
DEGeneExpr |
Object of class DEGeneExpr |
Alphas |
The series of soft threshold parameters to test |
AThreshold |
Adjacency threshold to be displayed on plots |
interactiveMode |
Boolean variable indicating whether the plots are in interactive mode. If false, it is useful for automatically saving plots in a single pdf file. |
Firstly, this function plots adjacency scores as a function of similarity scores, with different soft threshold parameters. Secondly, it displays network connectivity with different alpha values (with horizontal dashed lines at 0.05, 0.1 and 0.25 of total number of possible edges). In the same way, the next plots display maximal p-values, mean node connectivities, minimal spearman's rhos as a function of alpha values. Next plots show distributions of spearman's rhos (absolute values) and of p-values (logarithm scale). Finally, we can see a plot displaying spearman's p-values as a function of absolute values of rhos, with an horizontal dash line representing a p-value of 0.05 and a vertical one showing the rho for which we are the nearest to a p-value of 0.05.
WGCNANet
, WGCNANet.default
, getWGCNANet
, print.WGCNANet
, summary.WGCNANet
, export.WGCNANet
, compareGaussNetworks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # data(SpADataExpression)
# data(SpADEGenes)
# SpAData<-DEGeneExpr(t(SpADataExpression),SpADEGenes)
# NodesForSIMoNe<-rownames(SpADEGenes)[1:17]
# GaussianSpAData<-DEGeneExpr(t(SpADataExpression[NodesForSIMoNe,]),SpADEGenes[NodesForSIMoNe,])
# pickWGCNAParam(GaussianSpAData)
# GlobalWGCNANet<-getWGCNANet(GaussianSpAData)
# print(GlobalWGCNANet,5)
# summary(GlobalWGCNANet)
# plot(GlobalWGCNANet)
# export(GlobalWGCNANet,"GlobalWGCNANet",T)
# compareGaussNetworks(GlobalSIMoNeNet,GlobalWGCNANet,c("SIMoNe","WGCNA"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.