clusterProfiler cnetplot error
0
0
Entering edit mode
4.3 years ago
mb95521 • 0

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!

R clusterProfiler • 1.6k views
ADD COMMENT
0
Entering edit mode

Try changing the group column to a character. data$group <- as.character(data$group).

ADD REPLY
0
Entering edit mode

if this issue exists in clusterProfiler 4.0, pls post it to the github repo

ADD REPLY

Login before adding your answer.

Traffic: 1911 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6