美文网首页各种报错
WGCNA报错Error in colorMatrix[, c]

WGCNA报错Error in colorMatrix[, c]

作者: 信你个鬼 | 来源:发表于2020-09-11 16:49 被阅读0次

Date:2020-09-11
Author:zhangj

之前遇到过有人运行WGCNA,在画性状和表型图时总会报一个错误:

Error in colorMatrix[, c] : incorrect number of dimensions
In addition: Warning message:
In greenWhiteRed(10) :
WGCNA::greenWhiteRed: this palette is not suitable for people
with green-red color blindness (the most common kind of color blindness).
Consider using the function blueWhiteRed instead.

说来也是神奇,第一次遇到,我接到那个人的求助,发现她一摸一样的代码在我这里运行就没有任何问题,她的电脑上运行就会报错,后来我没能给她找出来问题在哪。

今天又遇到有个人报这样的错误:心想,我这次遇到了,总的看看是什么原因吧。这一次我再运行人家的代码,完美重复了人家的问题。上网找了找原因:https://www.biostars.org/p/446559/

这个网页中提到:The colorMatrix argument was introduced in labeledHeatmap function starting from WGCNA 1.69。

那么最终问题在于WGCNA版本的问题,我后面使用WGCNA1.66版本就完美重现了结果,要是使用1.68以后的版本就会出现问题,针对只有一个性状的WGCNA分析

step6-Module-trait-relationships2.png

大家可以去看一下源代码这个不同版本之间labeledHeatmap函数作者做了什么样得改动哈。

相关文章

网友评论

    本文标题:WGCNA报错Error in colorMatrix[, c]

    本文链接:https://www.haomeiwen.com/subject/hbxpektx.html