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. The list will usually containing a single spectrum closest to the given time (or for time range spectrum, the one with closest midpoint). Only in the rare case that two or more spectra have exactly the same distance, e.g. when multiple nested spectra exist around the given time with the same midpoint, the list will contain more than one spectrum. 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 |
base-id: 9502412171
id: 9007208757153163