'Fixed chromatogram deconvolution fails with recent version of xcms #298'.
@@ -222,7 +222,7 @@ public class CentWaveDetector implements PeakResolver {
rSession.eval("xRaw <- new(\"xcmsRaw\")");
rSession.eval("xRaw@tic <- intensity");
rSession.eval("xRaw@scantime <- scantime * " + SECONDS_PER_MINUTE);
- rSession.eval("xRaw@scanindex <- 1:numPoints");
+ rSession.eval("xRaw@scanindex <- 0:(numPoints-1)");
rSession.eval("xRaw@env$mz <- rep(mz, numPoints)");
rSession.eval("xRaw@env$intensity <- intensity");
