saezlab / OmnipathR

R client for the OmniPath web service
https://r.omnipathdb.org/
Other
112 stars 20 forks source link

Error in import_omnipath_annotations #104

Closed Megan0921 closed 4 months ago

Megan0921 commented 4 months ago

Dear Team, I'm trying to load the prior knowledge interactions composed by kinase-target relationships from omnipath database and I have encountered an error when running the following command:

library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(OmnipathR)
uniprot_kinases <- OmnipathR::import_omnipath_annotations(resources = "UniProt_keyword") %>%
  dplyr::filter(value == "Kinase" & !grepl("COMPLEX", uniprot)) %>%
  distinct() %>%
  pull(genesymbol) %>%
  unique()
#> NULL
#> Error in UseMethod("filter"): no applicable method for 'filter' applied to an object of class "list"

Created on 2024-07-27 with reprex v2.1.1

The error occurred when I’m following the tutorial on "Example of Kinase and TF activity estimation". I am using OmnipathR version 3.13.5. How can I fix this problem? Look forward to your reply. Thanks a lot!

Megan0921 commented 4 months ago

I am sorry to disturb you. I find that the issue was an old cache and and the error has been solved after I wipe my cache.