Open gbaquer opened 1 year ago
This looks like a library loading issue. I could not reproduce the error on my machine using your code. Make sure your add library(lipidr)
first, then run your code. If you're still getting the error, please submit a reprex
https://reprex.tidyverse.org/ so I can clarify where the issue is coming from.
Trying this example
lipid_list <- c( "Lyso PE 18:1(d7)", "PE(32:0)", "Cer(d18:0/C22:0)", "TG(16:0/18:1/18:1)" )
ann<-lipidr::annotate_lipids(lipid_list)
I get this error message:
Show in New Window Error in UseMethod("filter") : no applicable method for 'filter' applied to an object of class "NULL"
3. filter(., Molecule %in% molecules)
2. def[, c("Molecule", "clean_name", "ambig", "not_matched", "istd")] %>% filter(Molecule %in% molecules)
1. lipidr::annotate_lipids(lipid_list)
Happy to help resolve it.