Pyteomics is a collection of lightweight and handy tools for Python that help to handle various sorts of proteomics data. Pyteomics provides a growing set of modules to facilitate the most common tasks in proteomics data analysis.
This continues the discussion from #120 and uses the new metaclass to replace the _add_init decorator.
Potential weak links:
[x] (not new, it was also there with _add_init): very dumb inspection of bases which can fail if there are unexpected extra base classes. The selected "flavor" class should potentially be checked to be a subclass of FlavoredMixin, however it's not possible directly as FlavoredMixin may actually be in the process of creation (Edit: we can easily check the name of the current class to not be "FlavoredMixin", though - done).
This continues the discussion from #120 and uses the new metaclass to replace the
_add_init
decorator. Potential weak links:_add_init
): very dumb inspection of bases which can fail if there are unexpected extra base classes. The selected "flavor" class should potentially be checked to be a subclass ofFlavoredMixin
, however it's not possible directly asFlavoredMixin
may actually be in the process of creation (Edit: we can easily check the name of the current class to not be"FlavoredMixin"
, though - done).