Hi Xia Lab members,
I am currently working on an analysis using the MetaboAnalyst package Version 3.3.0 in R. I currently like to perform an enrichment analysis with the following code:
mSet<-InitDataObjects(“conc”, “msetora”, FALSE)
cmpd.vec<-ANOVA_HMDB
mSet<-Setup.MapData(mSet, cmpd.vec);
mSet<-CrossReferencing(mSet, “hmdb”);
mSet<-CreateMappingResultTable(mSet)
mSet<-SetMetabolomeFilter(mSet, F);
mSet<-SetCurrentMsetLib(mSet, “smpdb_pathway”, 2);
mSet<-CalculateHyperScore(mSet)
However, after the “SetCurrentMsetLib” step, I sometimes get the following error:
Error in if (!exists(“current.msetlib”) || mSetObj$analSet$msetlibname != :
missing value where TRUE/FALSE needed
Yesterday, I tried it once with the “KEGG_pathway” argument and switched back to smpdb and then suddenly it worked. Now, nothing works anymore. Is there an issue in my code? I am just starting using R, but it seems like this issue is above my skills.
Thank you very much for your help!
Best,
David
Love MetaboAnalyst btw!