lipidr icon indicating copy to clipboard operation
lipidr copied to clipboard

annotate_lipids error

Open gbaquer opened this issue 2 years ago • 1 comments

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.

gbaquer avatar Aug 07 '23 20:08 gbaquer

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.

ahmohamed avatar Aug 23 '23 16:08 ahmohamed