aboutsummaryrefslogtreecommitdiff
path: root/scripts/wgcna_analysis.R
blob: a8170b62eab7f40cb376a37747bebe1dd65db4e7 (plain)
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));