I want to plot a graph using a command of goplot >goplot(a)
, but on entering I got '?' in next line it was like > goplot(go_enrich_ls)
?
There was another variable (asd) where I got my plot but not in this (go_enrich_ls) variable, both variables were generated using same command of enrichGO. Please help me to resolve this error
Hi, can you provide a reproducible example? Did you enter the >
? Try without it.
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
1 Like
my data contain
head(go_enrich_ls)
ONTOLOGY ID Description GeneRatio BgRatio pvalue p.adjust qvalue
GO:0006281 BP GO:0006281 DNA repair 104/4420 343/21869 5.019489e-06 5.019489e-06 0.008050393
GO:0006302 BP GO:0006302 double-strand break repair 51/4420 143/21869 1.215743e-05 1.215743e-05 0.008050393
GO:0006974 BP GO:0006974 cellular response to DNA damage stimulus 111/4420 378/21869 1.229457e-05 1.229457e-05 0.008050393
GO:0022402 BP GO:0022402 cell cycle process 137/4420 487/21869 1.446406e-05 1.446406e-05 0.008050393
GO:0044786 BP GO:0044786 cell cycle DNA replication 29/4420 69/21869 2.982405e-05 2.982405e-05 0.011991819
GO:0006310 BP GO:0006310 DNA recombination 61/4420 186/21869 3.585543e-05 3.585543e-05 0.011991819
geneID
GO:0006281 AT3G09660/AT3G23255/AT1G31760/AT1G71260/AT4G31150/AT5G43500/AT5G18070/AT4G35110/AT4G09140/AT4G02390/AT5G66130/AT5G41150/AT2G02760/AT1G49980/AT5G07810/AT1G48580/AT3G28030/AT1G10520/AT1G55915/AT5G40840/AT1G13635/AT5G41360/AT5G50930/AT3G10140/AT5G46740/AT5G46280/AT4G00020/AT1G31360/AT3G48425/AT2G02480/AT2G16900/AT1G18340/AT1G07745/AT1G34380/AT5G64630/AT3G47830/AT3G12530/AT5G47690/AT2G35320/AT4G36050/AT4G29170/AT5G07400/AT5G24850/AT3G52050/AT4G37010/AT3G46940/AT3G25100/AT5G60370/AT3G26680/AT1G51130/AT2G18760/AT2G30350/AT4G19130/AT1G55750/AT1G52500/AT1G34770/AT1G67500/AT5G58760/AT1G04020/AT1G80810/AT1G27880/AT2G45700/AT3G57300/AT3G52560/AT2G23080/AT5G57160/AT4G00380/AT5G22010/AT4G24790/AT2G20960/AT1G14750/AT1G16970/AT3G06820/AT2G33640/AT1G80210/AT1G79950/AT4G30870/AT3G13782/AT3G02920/AT2G02740/AT5G45400/AT5G44635/AT2G36060/AT4G36280/AT3G05740/AT3G52115/AT5G49110/AT1G48360/AT3G48900/AT5G07660/AT1G63160/AT1G78870/AT5G56220/AT5G21140/AT1G48050/AT4G16265/AT1G75230/AT3G12040/AT5G48720/AT4G38560/AT5G44680/AT1G19025/AT4G02460/AT1G12400
GO:0006302 AT3G09660/AT3G23255/AT1G31760/AT5G43500/AT4G35110/AT4G02390/AT5G41150/AT1G10520/AT5G40840/AT5G46280/AT4G00020/AT1G31360/AT2G16900/AT1G07745/AT1G34380/AT5G64630/AT3G12530/AT4G29170/AT5G07400/AT3G52050/AT3G25100/AT3G26680/AT2G30350/AT4G19130/AT1G34770/AT1G67500/AT1G04020/AT1G27880/AT2G45700/AT3G57300/AT5G57160/AT4G00380/AT2G20960/AT1G14750/AT1G16970/AT3G06820/AT2G33640/AT1G80210/AT1G79950/AT4G30870/AT3G13782/AT3G02920/AT5G45400/AT5G44635/AT3G05740/AT3G52115/AT5G07660/AT5G21140/AT1G48050/AT4G38560/AT1G19025
GO:0006974 AT3G09660/AT3G23255/AT1G31760/AT1G71260/AT4G31150/AT5G43500/AT5G60870/AT5G18070/AT2G32700/AT4G35110/AT4G09140/AT4G02390/AT5G66130/AT5G41150/AT2G02760/AT1G49980/AT5G07810/AT1G48580/AT3G28030/AT1G10520/AT1G55915/AT5G40840/AT3G02860/AT1G13635/AT5G41360/AT5G50930/AT3G10140/AT5G45610/AT5G46740/AT1G16590/AT5G46280/AT4G00020/AT1G31360/AT2G31580/AT3G48425/AT2G02480/AT2G16900/AT1G18340/AT1G07745/AT1G34380/AT5G64630/AT3G47830/AT3G12530/AT5G47690/AT2G35320/AT4G36050/AT4G29170/AT5G07400/AT5G24850/AT3G52050/AT4G37010/AT3G46940/AT3G25100/AT5G60370/AT3G26680/AT1G51130/AT2G18760/AT2G30350/AT4G19130/AT1G55750/AT1G52500/AT1G34770/AT1G67500/AT5G58760/AT1G04020/AT1G80810/AT1G27880/AT2G45700/AT3G57300/AT3G52560/AT2G23080/AT5G57160/AT4G00380/AT5G22010/AT4G24790/AT2G20960/AT1G14750/AT1G16970/AT3G06820/AT2G33640/AT1G80210/AT1G79950/AT4G30870/AT3G13782/AT3G09370/AT3G02920/AT2G02740/AT5G45400/AT5G44635/AT2G36060/AT4G36280/AT3G05740/AT3G52115/AT5G49110/AT1G48360/AT3G48900/AT5G07660/AT1G63160/AT1G78870/AT5G56220/AT5G21140/AT1G48050/AT4G16265/AT1G75230/AT3G12040/AT5G48720/AT4G38560/AT5G44680/AT1G19025/AT4G02460/AT1G12400
GO:0022402 AT1G55350/AT3G09660/AT1G67370/AT2G20815/AT1G01370/AT4G15290/AT4G35620/AT2G28870/AT3G48150/AT5G03540/AT2G33793/AT4G36860/AT5G65420/AT4G35110/AT5G66130/AT5G41150/AT1G04030/AT5G67100/AT5G21150/AT5G11510/AT2G40430/AT1G13330/AT5G48390/AT3G60740/AT3G29185/AT5G43080/AT5G05970/AT3G05750/AT5G40840/AT1G08180/AT1G14350/AT3G02860/AT2G41670/AT3G24810/AT1G53490/AT5G50930/AT5G45610/AT4G37630/AT5G02420/AT3G20898/AT1G16330/AT5G46280/AT1G20930/AT2G01210/AT2G31580/AT2G44190/AT4G09550/AT3G47690/AT2G01990/AT3G20780/AT2G16900/AT4G30710/AT2G30820/AT1G07745/AT3G58650/AT5G47690/AT1G49040/AT1G06660/AT4G29170/AT4G37010/AT1G71830/AT5G05560/AT3G25100/AT1G55850/AT1G33240/AT2G33560/AT3G50630/AT3G50240/AT3G23890/AT1G22920/AT5G62500/AT3G43610/AT1G44110/AT1G80810/AT1G31810/AT5G15510/AT1G22275/AT3G53760/AT5G50375/AT2G34780/AT3G19150/AT5G22010/AT3G57860/AT1G80370/AT2G26180/AT2G46980/AT3G05330/AT2G20960/AT1G77390/AT1G14750/AT5G26290/AT2G18290/AT1G48380/AT2G02820/AT2G21770/AT2G33640/AT3G54710/AT3G63480/AT3G47460/AT1G69380/AT4G30870/AT2G27170/AT1G47570/AT4G11990/AT4G25070/AT3G61650/AT3G02820/AT1G02970/AT5G57880/AT5G04470/AT4G21530/AT5G44635/AT1G78770/AT1G61000/AT1G15110/AT3G52115/AT1G48360/AT3G25980/AT5G07660/AT1G03180/AT1G10690/AT5G03415/AT4G05190/AT5G48720/AT4G21820/AT4G38560/AT4G24710/AT1G04750/AT5G06680/AT3G02930/AT1G12790/AT1G78790/AT5G23700/AT5G48520/AT1G01690/AT1G49910/AT1G01040
GO:0044786 AT1G55350/AT2G28870/AT4G36860/AT5G67100/AT5G11510/AT1G08180/AT1G14350/AT3G02860/AT3G24810/AT4G37630/AT5G02420/AT3G20898/AT5G46280/AT3G20780/AT3G25100/AT1G33240/AT3G50630/AT2G34780/AT3G19150/AT2G18290/AT1G48380/AT2G02820/AT3G54710/AT1G69380/AT5G04470/AT5G44635/AT1G78770/AT1G10690/AT5G03415
GO:0006310 AT3G09660/AT1G67370/AT3G23255/AT1G31760/AT2G33793/AT4G35110/AT4G09140/AT5G41150/AT1G13330/AT5G48390/AT1G48580/AT5G40840/AT1G53490/AT5G50930/AT5G46280/AT4G00020/AT1G31360/AT2G16900/AT1G07745/AT5G64630/AT3G12530/AT5G47690/AT4G29170/AT3G25100/AT2G30350/AT3G23890/AT4G19130/AT1G67500/AT1G04020/AT1G80810/AT1G27880/AT3G57300/AT1G22275/AT4G00380/AT5G22010/AT2G20960/AT1G14750/AT2G33640/AT1G80210/AT1G79950/AT4G30870/AT3G13782/AT3G02920/AT5G57880/AT5G45400/AT5G44635/AT3G05740/AT3G52115/AT5G07660/AT5G56220/AT5G21140/AT1G03180/AT4G38560/AT4G24710/AT1G74350/AT3G02930/AT1G12790/AT1G78790/AT4G02460/AT5G04050/AT1G01690
Count
GO:0006281 104
GO:0006302 51
GO:0006974 111
GO:0022402 137
GO:0044786 29
GO:0006310 61
By this I want to create a goplot() using enrichplot pakage
I enter
> goplot(go_enrich_ls)
> library(enrichplot)
> head(go_enrich_ls)
#mentioned in above reply
> goplot(go_enrich_ls)
gave
?
You didn't do the reprex properly.
1 Like
May I know what is reprex
Reproducible example (reprex)
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
1 Like
system
Closed
January 26, 2022, 1:17pm
9
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.