First of all, this software is great, thanks. I am using it to access mzXml files, mainly like that:
with mzxml.read(path) as reader: k = 0 for spectrum in reader: mz = spectrum['m/z array'] intensity = spectrum['intensity array'] yield mz, intensity
My question is: do you have a direct generator of (mz,intensity) tuples? I mean something like that:
with mzxml.read(path) as reader: k = 0 for spectrum in reader: for mz, intensity in spectrum: yield mz, intensity, spectrum.run_numbers
I don't know how your parser works underneath Python, but I was wondering if you can save on RAM.