-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensembldb and dplyr: filter, select #135
Comments
Any suggestions (or even better pull request) solving this would be highly appreciated. The problem for me is that both the |
Hello,could you say detailed this solution? Can I see your code? |
The code I run is as follows: Then an error occurs, |
The Example: library(ensembldb)
library(dplyr) would cause that |
Thank you very much for your reply and suggestion. Now the problem has been solved. The R package I used is MethylCIBERSORT. It should be that this package conflicts with other packages. I can run the code after uninstalling dplyr. Thank you again. |
Loading the libraries in the following order, it makes sense that ensembldb hides dplyr functions: library(dplyr)
library(ensembldb) A similar (and a bit less obvious) issue is when using an AnnotationHub record after # library(ensembldb) # uncomment to work around the error
library(dplyr)
ens106 = AnnotationHub::AnnotationHub()[["AH100643"]]
genes(ens106) |> as.data.frame() |> filter(gene_name == "BRAF") # or select(), rename()
# Error: ensembldb::filter requires an 'EnsDb' object as input. Here, just using an
|
the issue is mainly that in Bioconductor (and ensembldb) |
Dear ensembldb team,
Both ensembldb and dplyr are widely and frequently used in my analysis, there are several functions are conflicted between ensembldb and dplyr, for example, filter, select. Maybe it will be helpful to think about a solution how to handle them well.
error in evaluating the argument 'x' in selecting a method for function 'select': ensembldb::filter requires an 'EnsDb' object as input. To call the filter function from the stats or dplyr package use stats::filter and dplyr::filter instead.
Thanks.
Shicheng
The text was updated successfully, but these errors were encountered: