Skip to content

emapplot 'x' must be an array of at least two dimensions #314

@asmariyaz23

Description

@asmariyaz23

Hello,

I am trying to use emapplot and get the following error:

emapplot(GO_CC_down) + labs(title="Enrichment map for GO CC down") + theme(plot.title=element_text(hjust=0.5,size=15,face="bold"))

Error in rowSums(data[, cols]) : 
  'x' must be an array of at least two dimensions

Here is the object:

> GO_CC_down
#
# Result of Comparing 5 gene clusters 
#
#.. @fun 	 enrichGO 
#.. @geneClusters 	List of 5
 $ conc_0.1uM : chr(0) 
 $ conc_1uM   : chr "RNVU1-29"
 $ conc_10uM  : chr(0) 
 $ conc_100uM : chr [1:56] "HECW1" "PDK2" "MRC2" "VCAN" ...
 $ conc_1000uM: chr [1:21] "NKAIN4" "SLC2A9" "CDH6" "CEP70" ...
#...Result 	'data.frame':	3 obs. of  13 variables:
 $ Cluster       : Factor w/ 5 levels "conc_0.1uM","conc_1uM",..: 4 4 4
 $ ID            : chr  "GO:0016323" "GO:0009925" "GO:0045178"
 $ Description   : chr  "basolateral plasma membrane" "basal plasma membrane" "basal part of cell"
 $ GeneRatio     : chr  "5/46" "5/46" "5/46"
 $ BgRatio       : chr  "264/19960" "298/19960" "317/19960"
 $ RichFactor    : num  0.0189 0.0168 0.0158
 $ FoldEnrichment: num  8.22 7.28 6.84
 $ zScore        : num  5.67 5.25 5.04
 $ pvalue        : num  0.000343 0.000596 0.000787
 $ p.adjust      : num  0.0268 0.0268 0.0268
 $ qvalue        : num  0.0226 0.0226 0.0226
 $ geneID        : chr  "ABCC3/SLC2A9/SLC7A7/AQP3/SLCO2A1" "ABCC3/SLC2A9/SLC7A7/AQP3/SLCO2A1" "ABCC3/SLC2A9/SLC7A7/AQP3/SLCO2A1"
 $ Count         : int  5 5 5
#.. number of enriched terms found for each gene cluster:
#..   conc_0.1uM: 0 
#..   conc_1uM: 0 
#..   conc_10uM: 0 
#..   conc_100uM: 3 
#..   conc_1000uM: 0 

Could you help me understand why I am getting this error?

Thank you,
Asma

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