Metabolomics Society Forum

Software => R => XCMS => Topic started by: uti subiectum intenta on December 12, 2017, 08:24:22 AM

Title: diffreport fails to generate EIC and stops -- Error in profEIC
Post by: uti subiectum intenta on December 12, 2017, 08:24:22 AM
I am currently experiencing a problem I have never encountered before while using diffreport. This is the error I get and I do not quite understand what it means:

Code: [Select]
Error in profEIC(object, mzrange = mzrange, rtrange = rtrange, step = step) : 
  'mzrange' number 9 (0, 368.159214087178) is outside of the mz value range of 'object'

This is the code that I use:

Code: [Select]
report <- diffreport(object = xset, 
                       class1 = "KO",
                       class2 = "WT",
                       filebase = "diffreport", eicmax = 50,
                       sortpval = TRUE,
                       metlin = 0.5, mzdec = 4)


When I change eicmax and set it to
Code: [Select]
eicmax = 5
, the code works and I have no problem. But I do not understand why it fails to work with 50.
Title: Re: diffreport fails to generate EIC and stops -- Error in profEIC
Post by: Jan Stanstrup on December 12, 2017, 12:05:14 PM
Looks like it has found a feature with mz between 0 and 368... That sounds like a bug. There was some recent fixes to something similar. Perhaps try to update from github and post your version.