学是很多做科研的同学都想学的,包括我在内,现阶段正在学习这个,深夜整理材料不易,请多多关照支持!
先安装Rstudio以及以及加载WGCNA数据包
Rstudio软件下载地址:
WGCNA加载按照网站步骤操作:
Workshop可以在rstudio菜单栏的session-set working directory 选择你要工作的文件夹,要读取的CSV等文档都只能放在设置的working directory。
蓝色#表示注释行,黑色是代码,运行代码时的每一行命令是不需要分号“;”。
以下是代码数据,这个是我看学习的教程,有些我也不懂,粘贴出来一起学习。
1.a Loading expression data
# Display the current working directory
getwd();
# If necessary, change the path below to the directory where the data files are stored.
# "." means current directory. On Windows use a forward slash / instead of the usual \.workingDir = ".";setwd(workingDir);
# Load the WGCNA pack