lgatto / MSnbase

Base Classes and Functions for Mass Spectrometry and Proteomics
http://lgatto.github.io/MSnbase/
123 stars 50 forks source link

Clarification on acquisitionNum vs scanIndex #525

Closed stanstrup closed 3 years ago

stanstrup commented 3 years ago

I couldn't find a description of the difference between acquisitionNum, scanIndex and a few other scan variables.

In my file spIdx, seqNum, acquisitionNum and spectrum all appear to be the same and is just the number of the scan in the order recorded disregarding that they are different scanEvents (another matter is that there seems to be no easy way to distinguish scanEvents).

In the code it looks like scanIndex equals spIdx...

The documentation doesn't make it clearer in my mind...

acquisitionNum integer(1): the index of acquisition of a spectrum during a MS run.
scanIndex integer(1): the index of a spectrum within a (raw) file.

Would it be possible to describe the differences more explicitly?

sgibb commented 3 years ago

This is indeed quite complicated and convoluted:

lgatto commented 3 years ago

Thanks @sgibb - you beat me to it.

This is probably something we should add in the documentation, in MSnbase and Spectra.

lgatto commented 3 years ago

I have added a short description of this to the Spectra and MSnExp man pages.