You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'pyopenms.pyopenms_4.PeptideAndProteinQuant' object has no attribute 'getPeptideResults' #5657
getPeptideResults isn't accessible from PeptideAndProteinQuant, but it seems like a public method.
from pyopenms import PeptideAndProteinQuant
PeptideAndProteinQuant().getPeptideResults()
Error:
AttributeError: 'pyopenms.pyopenms_4.PeptideAndProteinQuant' object has no attribute 'getPeptideResults'
Is it possible to make it available? We would like to only get the peptide quantification but not protein, so if getPeptideResults is available, we can directly call quantifyPeptide from python and save it. Unless there is a better way of doing it. Btw, getProteinResults is also not available from pyopenms.
I guess it was not successful because the key is a AASequence object which probably needs special treatment on the wrapper side. @hroest can you take a brief look at that?
Yes, currently not both key and value can be user-defined/wrapped classes.
We need to investigate why autowrap has this limitation.
For just outputting to pyopenms we should just write an overload that returns std::strings as keys for those methods
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
timosachsenberg commentedon Nov 16, 2021
Hi, that would indeed be a good to have in pyOpenMS.
Looking at the code someone already tried to wrap it:
OpenMS/src/pyOpenMS/pxds/PeptideAndProteinQuant.pxd
Lines 59 to 62 in cceb3d3
I guess it was not successful because the key is a AASequence object which probably needs special treatment on the wrapper side. @hroest can you take a brief look at that?
jpfeuffer commentedon Feb 7, 2022
Yes, currently not both key and value can be user-defined/wrapped classes.
We need to investigate why autowrap has this limitation.
For just outputting to pyopenms we should just write an overload that returns std::strings as keys for those methods
hroest commentedon Feb 17, 2022
@jpfeuffer the limitation is simply that its not implemented:
https://github.com/OpenMS/autowrap/blob/84e19fb094d628a7446120873c6819e79296bb3c/autowrap/ConversionProvider.py#L787-L790
what does work is
libcpp_map[libcpp_string, ProteinData]whilelibcpp_map[AASequence, PeptideData]wont workhroest commentedon Feb 17, 2022
@jpfeuffer this PR fixes this issue and should allow such wrapping of
std::map<Widget, Widget>: OpenMS/autowrap#124jpfeuffer commentedon Apr 28, 2022
Unfortunately the PR wasn't complete. We need to wait for a fix of OpenMS/autowrap issue 143
github-actions commentedon Dec 21, 2025
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
[TEST] Add Python tests for getPeptideResults and getProteinResults
timosachsenberg commentedon Jan 17, 2026
Should be possible noew
Expose getPeptideResults and getProteinResults in pyOpenMS nanobind b…
feat: expose getPeptideResults and getProteinResults in pyOpenMS nano…
feat: expose getPeptideResults and getProteinResults in pyOpenMS nano…
Expose getPeptideResults and getProteinResults in pyOpenMS (#8543)