enrichplot icon indicating copy to clipboard operation
enrichplot copied to clipboard

cnetplot for list object

Open itsvenu opened this issue 2 years ago • 5 comments

Hi,

Thanks for the very nice package. I am trying to use cnetplot function with a list object. However, I get the following error. In the manual, it is written that the function can be used for a named list object, here.

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘cnetplot’ for signature ‘"list"’

Any help is greatly appreciated in solving this issue. Thank you!

itsvenu avatar Oct 11 '21 13:10 itsvenu

@itsvenu Please use the latest version of enrichplot.

huerqiang avatar Oct 11 '21 13:10 huerqiang

@huerqiang Thanks for the quick reply. Seems to be working.

itsvenu avatar Oct 11 '21 13:10 itsvenu

Hi @huerqiang, I want to use cnetplot for my enrich result. However, my ortholog database does not have gene symbols data to map. How can I map it manually and use cnetplot to visualize it? Thank you very much!

phancanhtrinh avatar Oct 25 '21 22:10 phancanhtrinh

@huerqiang please i am having same problem. The version of enrichplot i am using is 1.10.2 in my first attempt, I used this command x <- list(A = Enrich2_RNAseq_sig_BP[134,9], B= DMR_BP_rich[8,8]) p <- cnetplot(x)

in the second attempt i created the two list first as follows Axonogenese_rnaseq_enrich_gene <- as.list(Enrich2_RNAseq_sig_BP[134,9]) Axonogenese_DMR_enrich_gene <- as.list(DMR_BP_rich[8,8]) x1 <- list(A = Axonogenese_DMR_enrich_gene, B = Axonogenese_rnaseq_enrich_gene) p1 <- cnetplot(x1)

For the two approaches, i am getting the error message " Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘cnetplot’ for signature ‘"list"’" Please, what am I doing wrong? kindly help me.

Thank you

abiodunodufuwa avatar Oct 10 '23 23:10 abiodunodufuwa

@abiodunodufuwa Your enrichplot package is out of date. Please update it. And your input seems inappropriate. Please see: https://yulab-smu.top/biomedical-knowledge-mining-book/enrichplot.html#fig:cnetplotgeneral

huerqiang avatar Oct 11 '23 08:10 huerqiang