AllMsSpectraByClosestTime

Scope:

Injection

Peak or group

Parameters:

No

Description:

Returns a list of closest peak spectra (excluding background spectra) from the provided timestamp. Can be used in aggregate formula. Both automatically and manually extracted spectra are included.

Note:

Extraction time is considered for single spectrum extraction, or midpoint time for averaged peak spectra.

Syntax:

AllMsSpectraByClosestTime as list

Example:

CurrentPeakOrGroup.AllMSSpectraByClosestTime(Peak_RetentionTime).ElementAt(0).MsSpectrum_MaxAbundance returns the max abundance of the 1st closest peak spectrum compared with the peak apex retention time from the list of spectra available in data.

CurrentPeakOrGroup.AllMSSpectraByClosestTime(Peak_RetentionTime).Last.TopIons(5).Select(function (item) item.ToString()).Aggregate(function(a, b) a + ", " + b) returns the top 5 ion peak list comma separated of the furthest peak spectrum compared with the peak apex retention time from the list of spectra available in data.

Returned scope:

List of MS spectra