OpenMS / pyopenms-docs

pyOpenMS readthedocs documentation, additional utilities, addons, scripts, and examples.
https://pyopenms.readthedocs.io
Other
42 stars 50 forks source link

Create Vector wrapper for PeptideIdentifications and ProteinIdentifications #387

Open jpfeuffer opened 1 year ago

jpfeuffer commented 1 year ago

And provide overloads for certain functions that return a list of PeptideIdentifications to return this Wrapper instead. Avoids copying everything, allows us to provide convenience functions (toNDArray, toArrow) and iteration will be much much faster than in python. Start on a Cython templated wrapper for general vectors there wraps the iter function and constructors. (Check if this already exists). Then create a class that inherits from VectorWrapper[PeptideIdentification] with some specific cython and/or python functions.

jpfeuffer commented 1 year ago

In C++ we could have a simple typedef to make the signatures look the same.