Description Usage Arguments Value Examples
Plot gene module relationship and correlation with traits.
1 2 3 4 5 6 7 8 9 | WGCNA_ModuleGeneTraitHeatmap(
datExpr,
traitData = NULL,
net,
corType = "bicor",
prefix = "ehbio",
saveplot = NULL,
...
)
|
datExpr |
Expression data. A matrix (preferred) or
data frame in which columns are genes and rows ar samples. NAs are
allowed, but not too many. See |
traitData |
Sample attributes data frame.
Or the "traitData" generated in |
net |
|
corType |
character string specifying the correlation to be used. Allowed values are (unique
abbreviations of) |
prefix |
prefix for output files. |
saveplot |
Save plot to given file "a.pdf", "b.png". |
... |
Additional parameters given to plot output ( |
A dataframe geneTraitCor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | df = generateAbundanceDF(nSample=30, nGrp=3, sd=5)
datExpr <- WGCNA_dataFilter(df)
datExpr <- WGCNA_sampleClusterDetectOutlier(datExpr)
power <- WGCNA_softpower(datExpr)
net <- WGCNA_coexprNetwork(datExpr, power)
WGCNA_saveModuleAndMe(net, datExpr)
cyt <- WGCNA_cytoscape(net, power, datExpr)
hubgene <- WGCNA_hubgene(cyt)
#2
exprMat <- "test.file"
wgcnaL <- WGCNA_readindata(exprMat)
traitData <- 'trait.file'
wgcnaL <- WGCNA_readindata(exprMat, traitData)
datExpr <- wgcnaL$datExpr
traitData <- wgcnaL$traitData
WGCNA_dataCheck(datExpr)
datExpr <- WGCNA_dataFilter(datExpr)
datExpr <- WGCNA_sampleClusterDetectOutlier(datExpr)
# datExpr <- WGCNA_sampleClusterDetectOutlier(datExpr, traitColors=wgcnaL$traitColors)
power <- WGCNA_softpower(datExpr)
net <- WGCNA_coexprNetwork(datExpr, power)
MEs_col <- WGCNA_saveModuleAndMe(net, datExpr)
WGCNA_MEs_traitCorrelationHeatmap(MEs_col, traitData=traitData)
cyt <- WGCNA_cytoscape(net, power, datExpr)
hubgene <- WGCNA_hubgene(cyt)
WGCNA_moduleTraitPlot(MEs_col, traitData=traitData)
geneTraitCor <- WGCNA_ModuleGeneTraitHeatmap(datExpr, traitData, net)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.