wjawaid / enrichR

An R interface to enrichR
76 stars 17 forks source link

BioCarta_2016 database term column has always the string "Pathway" attached to each entry #57

Closed KalinNonchev closed 1 year ago

KalinNonchev commented 1 year ago

Minimal example


library(enrichR)
dbs <- c("BioCarta_2016")
enriched <- enrichr(c("GATA1"), dbs)
enriched$BioCarta_2016$Term

[1] "Hemoglobin's Chaperone Homo sapiens h ahspPathway"

ycl6 commented 1 year ago

Hi @KalinNonchev I have a look at the BioCarta_2016 library (BioCarta_2016.txt) on the Enrichr website, it seems that's how it was curated. The easiest way to deal with this is to remove its occurrence in all Terms using sub().

library(enrichR)
#> Welcome to enrichR
#> Checking connection ...
#> Enrichr ... Connection is Live!
#> FlyEnrichr ... Connection is available!
#> WormEnrichr ... Connection is available!
#> YeastEnrichr ... Connection is available!
#> FishEnrichr ... Connection is available!

library(enrichR)
dbs <- c("BioCarta_2016")
enriched <- enrichr(c("GATA1"), dbs)
#> Uploading data to Enrichr... Done.
#>   Querying BioCarta_2016... Done.
#> Parsing results... Done.
enriched$BioCarta_2016$Term
#> [1] "Hemoglobin's Chaperone Homo sapiens h ahspPathway"

enriched$BioCarta_2016$Term <- sub("Pathway$", "", enriched$BioCarta_2016$Term)
enriched$BioCarta_2016$Term
#> [1] "Hemoglobin's Chaperone Homo sapiens h ahsp"

Created on 2022-11-10 by the reprex package (v2.0.1)

You can also report this to the Enrichr's issues tracker