Comments (1)
Hi, this issue is due to the duplicated terms in test_ego.
library(genekitr)
library(geneset)
library(dplyr)
gs3 <- getReactome(org = "human")
testgenes <- read.csv(file = "~/Downloads/for_R_test/testgenelist.csv", header = TRUE, sep = ",")
## ORA Analysis
id <- testgenes$GeneID
test_ego <- genORA(id,
geneset = gs3,
p_cutoff = 0.05,
q_cutoff = 0.10
)
# check duplicated term
description <- test_ego$Description
dup_term <- description[duplicated(description)] # "Maturation of nucleoprotein"
# get IDs
dup_term_ids <- test_ego %>% filter(Description == dup_term) %>% pull(ID)
# "R-HSA-9683610" "R-HSA-9694631"
You can see both R-HSA-9694631 and R-HSA-9683610 all belong to "Maturation of nucleoprotein". While the Y-axis of the plot does not support duplicated terms.
So the solution is to make the duplicated terms unique.
For example, we could combine Reactome IDs with "Maturation of nucleoprotein".
# modify duplicated description
test_ego <- test_ego %>% mutate(Description = if_else(Description %in% dup_term,
paste0(Description,'_',ID),
Description))
plotEnrich(test_ego, plot_type = "bar")
Anyway, I have updated the function in v1.2.3, which could automatically check if duplicated terms exist and give users warning instead of error:
from genekitr.
Related Issues (20)
- plotGSEA with max.overlap parameter HOT 3
- Citation HOT 2
- Plotting for ShinyGO ORA results HOT 10
- symbols with Excel misidentified gene names HOT 2
- plotGSEA classic type for non-model species HOT 4
- load older versions of the package from CRAN HOT 2
- org.db bug in gotangram HOT 2
- transId keeping unique ids issue HOT 3
- Could not resolve host: genekitr-china.oss-accelerate.aliyuncs.com HOT 2
- genInfo missing data HOT 2
- Issue with ORA and importCP HOT 2
- Problem about transId HOT 6
- labels overlay bars in plotEnrichAdv when left x-axis limit is less than the right limit HOT 1
- transId from alias to symbol no longer works HOT 1
- transId loading issue HOT 3
- transId() mouse symbols HOT 2
- new version is memory hungry HOT 10
- transId() updating symbols weird behaviour HOT 2
- transId() does not return all input symbols HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genekitr.