WGCNA包的blockwiseModules函数debug

WGCNA debug

net = blockwiseModules(datExpr, power = sft$powerEstimate,
maxBlockSize = 6000,TOMType = "unsigned", 
minModuleSize = 30,reassignThreshold = 0, mergeCutHeight = 0.25,
numericLabels = TRUE, pamRespectsDendro = FALSE,
saveTOMs = TRUE,
saveTOMFileBase = "AS-green-FPKM-TOM",
verbose = 3)

运行到这里报错:
Error in (new("standardGeneric", .Data = function (x, y = NULL, use = "everything", :
unused arguments (weights.x = NULL, weights.y = NULL, cosine = FALSE)

已解决,这里面涉及超多问题,发现很多人都遇到这个,是WGCNA包与其他函数冲突导致的;
输入

cor <- WGCNA::cor

暂时分配功能
再运行
blockwiseModules
后面再调回来

cor<-stats::cor

天天都在和bug作斗争,浪费时间啊哎

你可能感兴趣的:(WGCNA包的blockwiseModules函数debug)