compomics / psm_utils

Common utilities for parsing and handling peptide-spectrum matches and search engine results in Python
https://psm-utils.readthedocs.io
Apache License 2.0
25 stars 7 forks source link

Add support for reading Sage PSM files; various minor fixes #31

Closed ArthurDeclercq closed 1 year ago

ArthurDeclercq commented 1 year ago

Added

Changed

Fixed

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 37.68% and project coverage change: -0.05 :warning:

Comparison is base (638d19b) 41.52% compared to head (4dacc86) 41.48%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #31 +/- ## ========================================== - Coverage 41.52% 41.48% -0.05% ========================================== Files 18 19 +1 Lines 1416 1468 +52 ========================================== + Hits 588 609 +21 - Misses 828 859 +31 ``` | [Impacted Files](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics) | Coverage Δ | | |---|---|---| | [psm\_utils/io/maxquant.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL2lvL21heHF1YW50LnB5) | `84.61% <ø> (ø)` | | | [psm\_utils/io/mzid.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL2lvL216aWQucHk=) | `29.71% <0.00%> (-0.29%)` | :arrow_down: | | [psm\_utils/io/percolator.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL2lvL3BlcmNvbGF0b3IucHk=) | `28.82% <20.00%> (-0.35%)` | :arrow_down: | | [psm\_utils/io/sage.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL2lvL3NhZ2UucHk=) | `41.02% <41.02%> (ø)` | | | [psm\_utils/peptidoform.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL3BlcHRpZG9mb3JtLnB5) | `31.47% <60.00%> (+0.78%)` | :arrow_up: | | [psm\_utils/io/\_\_init\_\_.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL2lvL19faW5pdF9fLnB5) | `37.03% <100.00%> (+0.78%)` | :arrow_up: | | [psm\_utils/psm.py](https://codecov.io/gh/compomics/psm_utils/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics#diff-cHNtX3V0aWxzL3BzbS5weQ==) | `85.71% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=compomics)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

lazear commented 1 year ago

I just opened a fork to do this, should've checked here first! Thanks for implementing this

RalfG commented 1 year ago

@lazear, great to hear that you wanted to add Sage support! Feel free to take a look at the implementation and give feedback where needed. One thing I noticed was that the Sage documentation lists the spectrum_q column, while the actual output file seems to contain a spectrum_fdr column instead.

lazear commented 1 year ago

@lazear, great to hear that you wanted to add Sage support! Feel free to take a look at the implementation and give feedback where needed. One thing I noticed was that the Sage documentation lists the spectrum_q column, while the actual output file seems to contain a spectrum_fdr column instead.

Thanks for the catch - this is what I get for using ChatGPT to write docs :)