runInfo returns startTimeStamp -infinity
1
0
Entering edit mode
@polsoladelossantos-14182
Last seen 4.5 years ago

Hi, When loading a mzML file through:

library(MSnbase)
library(mzR)
ms <- openMSfile('path/to/file.mzML')

Trying to access injection time I get in some files the following:

ms$startTimeStamp
[1] "-infinity"

What does it mean? Any workaround? Thanks

lcms mzR metabolomics xcms MSnbase • 1.2k views
ADD COMMENT
0
Entering edit mode
@laurent-gatto-5645
Last seen 11 weeks ago
Belgium

I think you are missing some bits of code in your example - it probably should be

ms <- openMSfile('path/to/file.mzML')
info <- runInfo(ms)
ms$startTimeStamp

The reason you read "-infinity" is probably because that's what is encoded in your mzML file. You can check for yourself in R with

grep("startTimeStamp", readLines('path/to/file.mzML'), value = TRUE)

or on the command line with

grep startTimeStamp path/to/file.mzML

In the future, could you please add the output of sessionInfo() to make sure we are talking about the latest version.

ADD COMMENT
0
Entering edit mode

Thanks, As you said -infinity it's written on the mzML file. Any workaround to get the time of injection of the sample? Best,

ADD REPLY
0
Entering edit mode

I don't think there is from that mzML file. You might have to check in the raw binary file, or try to convert it again and see if it was missed out in the first place.

ADD REPLY
0
Entering edit mode

Moreover, Case of one study MTBLS404, samples of Batch1 have this information, Batch 2 does not.

Batch 2: grep startTimeStamp HUneg070_b2.mzML <run id="HU_neg_070" defaultinstrumentconfigurationref="IC1" starttimestamp="-infinity" defaultsourcefileref="RAW1">

Batch 1: grep startTimeStamp HUneg086.mzML <run id="HU_neg_086" defaultinstrumentconfigurationref="IC1" starttimestamp="2009-05-08T17:17:26Z" defaultsourcefileref="RAW1">

Any idea?

ADD REPLY
0
Entering edit mode

The only advise I can give you is to download the RAW files and check in there and/or reconvert them to mzML. Other then that, you can try to contact the authors.

ADD REPLY

Login before adding your answer.

Traffic: 456 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6