vanmooylipidomics / LOBSTAHS

Git repository for the R package "LOBSTAHS" (Lipid and Oxylipin Biomarker Screening Through Adduct Hierarchy Sequences)
Other
8 stars 12 forks source link

Error when calling generateLOBdbase(): "Error in FUN(X[[i]], ...): only defined on a data frame with all numeric variables" #26

Closed jamesrco closed 7 years ago

jamesrco commented 7 years ago

Troubleshooting error for user @MarcNIOZ. User reported obtaining error

Error in FUN(X[[i]], ...):
  only defined on a data frame with all numeric variables"

when calling generateLOBdbase() using custom componentCompTable and adductHierarchies matrix.

jamesrco commented 7 years ago

Resolution: After investigating, discovered that user's custom adductHierarchies matrix did not contain column headings with exact name matches to every Adduct_hierarchy_lookup_class given in the componentCompTable.

jamesrco commented 7 years ago

Commit f561801b79510be332f1b0af2aab27a80b0f74a7 adds a new stop() call to catch this error, stop the runSim() loop and provide specific feedback to user.