Entering edit mode
                    5.2 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!
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