Closed wsnoble closed 2 years ago
spectrum_utils receives spectrum data from online resources based on the ProXi specification (through integration with Pyteomics). Unfortunately, precursor m/z (and charge) are only optional fields for spectra. As a result, this information is not always available for all files or provided by all data repositories.
Unfortunately this missing information cannot be remedied on the spectrum_utils side, hence the option to explicitly provide precursor m/z and charge.
I am loading a spectrum by USI like this
but I get this error:
If I download the file and convert to MGF, that spectrum looks like this:
It has the peptide mass and the charge. Why can't it figure out the m/z?