rformassspectrometry / Spectra

Low level infrastructure to handle MS spectra
https://rformassspectrometry.github.io/Spectra/
34 stars 24 forks source link

feat: add chunkapply (issue #249) #250

Closed jorainer closed 1 year ago

jorainer commented 1 year ago

This PR adds the chunkapply function discussed in issue #249. Function spectrapply,Spectra gains also parameter chunkSize to use the same, chunk-based processing and have a single function to apply any user defined function to a Spectra.

jorainer commented 1 year ago

@lgatto @sgibb @andreavicini , could anybody of you maybe have a quick look at this PR? I am pretty confident that the code is correct :wink: - but I would still like to have a second pair of eyes looking at it.

jorainer commented 1 year ago

Thanks Andrea!