The number of peaks returned from GetSegmentedMassListFromScanNum function is insufficient
Hello,
Thanks for the code you offer!
But I found some problems during the use. Compared with the peaks in the mzXML file obtained through MSConvert, the number of peaks returned by calling the function GetSegmentedMassListFromScanNum (the number of elements in the intensity list in each spectrum) is generally less.
I tested the raw file of a Thermo. The m/z distribution of all peaks obtained from the corresponding mzXML file and the m/z distribution of all peaks obtained from pymsfilereader are shown in the following two figures(ms1).
The m/z distribution of the complements of the two groups of m/z (the m/z list of peaks not read by pymsfilereader) is shown in the following figure:
The same is true for the order2 spectrum:
the different between the two lists
mzXML ms2 m/z list:
raw ms2 m/z list:

Would really appreciate you help, Dahai