good question, because the output of getIsotopeCluster can't be mapped directly.
It would be a larger code snippet, so I prefer a small change in the function itself.
I report back, as soon as I'm finished.
Concerning the value argument:
xcms reports 3 different intensity values for each peak.
maxo - maximum peak intensity
into - integrated peak intensity
intb - integrated peak intensity (baseline corrected)
The choose of the intensity is important for the detection in findIsotopes (for calculation C12/C13 threshold)
Within getIsotopeCluster it only changes the reported intensity value.
Within our data sets the intb values works best, mainly with low peak intensity.