Metabolomics Society Forum

Software => R => CAMERA => Topic started by: cbroeckl on August 15, 2011, 04:03:23 PM

Title: plot EIC error
Post by: cbroeckl on August 15, 2011, 04:03:23 PM
I am receiving an error frequently when trying to plot the EICs for selected pseudospectra:

Error in pks[, 1] : incorrect number of dimensions

This happens for certain pSpectra groups, only for the plotEICs function, not the plotPsSpectrum function.
Title: Re: plot EIC error
Post by: Carsten on August 17, 2011, 08:26:35 AM
Hi,

thanks for reporting. Could you specify the CAMERA version and the give an code example?
Did you plot only one pseudospectra or more?

Carsten
Title: Re: plot EIC error
Post by: cbroeckl on August 17, 2011, 03:21:46 PM
> plotEICs(an4, pspec=1000, maxlabel=10)
Error in pks[, 1] : incorrect number of dimensions

> packageVersion("CAMERA")
[1] ‘1.9.3’

> an4
An "xsAnnotate" object!
With 2237 groups (pseudospectra)
With 84 samples and 9528 peaks
Using automatic sample selection
Annotated isotopes: 251
Memory usage: 134 MB

Thanks for looking into it. I get the impression that this error occurs most frequently when there are few (or only one) features in a particular pseudospectrum group.
Title: Re: plot EIC error
Post by: Carsten on August 22, 2011, 08:21:17 AM
CAMERA 1.9.6 contains a bug fix, which should be available at BioC tomorrow afternoon

Carsten
Title: Re: plot EIC error
Post by: cbroeckl on September 01, 2011, 01:38:17 PM
Thanks - i will give the new version a test!