clusterProfiler cnetplot error
clusterProfiler (R) package is indeed a very powerful package in many pathway analysis! But when I use 'cnetplot' function, I often meet the error:
Error in pathAttr(data, length(unique(data$group))) :
Not compatible with requested type: [type=character; target=integer].
Even when I run it with example data(geneList) in DOSE package, it is always the same error. Anyone how to solve this problem? Thank you!
• 2,064 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Try changing the group column to a character.
data$group <- as.character(data$group).if this issue exists in clusterProfiler 4.0, pls post it to the github repo