buenrostrolab / FigR

Functional Inference of Gene Regulation
https://buenrostrolab.github.io/FigR/
MIT License
32 stars 10 forks source link

Error in filter(., dist == min(dist)) : ... use stats::filter and dplyr::filter instead #12

Closed perezja closed 1 year ago

perezja commented 1 year ago

Appears there is a conflict in the use of filter (i.e., dplyr::filter) in some FigR functions with other libraries in user-space.

At the end of FigR::cellPairing the error is thrown

Error in filter(., dist == min(dist)) : 
  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.
Calls: <Anonymous> -> %>% -> filter
Execution halted

I had the following libraries loaded:

Perhaps should include the library prefix for common generics across all FigR functions.

vkartha commented 1 year ago

Hi there, I've added the dplyr:: specification for this, and throughout the other functions. Hopefully this should be fixed now, regardless of your libraries loaded.

vkartha commented 1 year ago

@perezja Closing this for now, hope it solved the issue for you, let me know if it persisted