aboutsummaryrefslogtreecommitdiff
path: root/scripts/wgcna_analysis.R
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/wgcna_analysis.R')
-rw-r--r--scripts/wgcna_analysis.R21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/wgcna_analysis.R b/scripts/wgcna_analysis.R
index e69de29..a8170b6 100644
--- a/scripts/wgcna_analysis.R
+++ b/scripts/wgcna_analysis.R
@@ -0,0 +1,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));
+
+
+
+
+
+
+
+