ahmohamed / lipidr

Data Mining and Analysis of Lipidomics datasets in R
https://www.lipidr.org/
Other
27 stars 13 forks source link

annotate_lipids error #56

Open gbaquer opened 1 year ago

gbaquer commented 1 year ago

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.

ahmohamed commented 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.