Closed RalfG closed 2 years ago
Two issues are appearing here. The first is that there's a missing break
in the GenericResolver.resolve
method. That's an easy fix.
I'll also add an explicit exception stating what went wrong
The second is that TMT6plex
is found in both UNIMOD and PSI-MOD, and the entry in PSI-MOD is connected by synonym to many different entries, but the one that sticks is the reporter ion, which isn't really a modification but an ion series, unlike most other entries in the CV, so it didn't have the shape I was expecting.
Since GenericResolver.resolve
didn't short-circuit, it kept trying to find a modification in other CVs. Since PSIMOD is checked after UNIMOD, but also contains a match for that name, but that match was problematic (see paragraph above).
Oxidation
isn't found in any other CV, so it was safe from the lack-of-short-circuit problem before.
Fix is #69
Hi @levitsky and @mobiusklein,
As the title says, in the
proforma
module, when trying to access the.mass
property on an unresolvable modification, the following error is thrown:Adding the Unimod prefix
U:
fixes the issue, in this case:It is of course expected that the mass of an unresolvable modification cannot be retrieved, although I would propose to raise a more informative exception.
As a side question: How come that
Oxidation
is parsed without prefix, whileTMT6plex
is not?Thanks! Ralf