Jump to content

File:Wgcna null dend.png: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 February 2026

  • curprev 09:1909:19, 25 February 2026 Brb talk contribs 4,899 bytes +4,899 <syntaxhighlight lang='r'> library(WGCNA) # Set seed for reproducibility set.seed(123) # 1. Create a "Scaffold" for 3 modules (patterns of expression) nSamples = 50 # 2. Generate 1000 genes based on these patterns + some noise # Module 1: 200 genes correlated with pattern 1 noise = matrix(rnorm(nSamples*1000), nrow=nSamples) # 3. Combine into one expression matrix (Samples as Rows, Genes as Columns) datExpr2 = as.data.frame(noise) colnames(datExpr2) = paste0("Gene", 1:1000) rownames(datEx...