Skip to content

Issue when calling cnetplot on compareClusterResult with node_label set to "none" #344

@jimrperkins

Description

@jimrperkins

According to function documentation, the node_label argument can be either set to "category", "group", "all" or "none".

However, when calling cnetplot on compareClusterResult with node_label set to "none" I get an error:

library(clusterProfiler)
library(enrichplot)
data(gcSample)
xx <- compareCluster(gcSample, fun="enrichKEGG", organism="hsa", pvalueCutoff=0.05)
x2 <- pairwise_termsim(xx)
cnetplot(x2, node_label='none')

Error:

Error in str2lang(paste("foldChange", node_label)) : 
  <text>:1:12: unexpected symbol
1: foldChange none
               ^

I don't get an error when setting node_lable to "all".

Thanks!
Jim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions