1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# initial workspace setup library(WGCNA); stringsAsFactors = FALSE # load expression data **assumes csv format row(traits)(columns info+samples) wgcnaRawData <- read.csv(file = "wgcna_data.csv") # transform expressionData datExpr <- as.data.frame(t(wgcnaRawData));