rformassspectrometry / Spectra

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

feat: add chunkapply (issue #249) #250

Closed jorainer closed 2 years ago

jorainer commented 2 years 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 2 years 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 2 years ago

Thanks Andrea!