althonos / pyhmmer

Cython bindings and Python interface to HMMER3.
https://pyhmmer.readthedocs.io
MIT License
128 stars 12 forks source link

Record query object in every `TopHits` object. #78

Closed althonos closed 1 month ago

althonos commented 1 month ago

This PR fixes #76 by recording the original query object passed to the Pipeline, so that the attributes can still be accessed when processing queries.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 69.47368% with 29 lines in your changes missing coverage. Please review.

Project coverage is 79.27%. Comparing base (580f884) to head (41c377e). Report is 17 commits behind head on master.

Files with missing lines Patch % Lines
pyhmmer/plan7.pyx 69.64% 17 Missing :warning:
pyhmmer/daemon.pyx 0.00% 9 Missing :warning:
pyhmmer/hmmer.py 88.88% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #78 +/- ## ========================================== + Coverage 79.25% 79.27% +0.02% ========================================== Files 9 9 Lines 7250 7243 -7 Branches 17 17 ========================================== - Hits 5746 5742 -4 + Misses 1490 1487 -3 Partials 14 14 ``` | [Flag](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | Coverage Δ | | |---|---|---| | [v3.10](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.27% <69.47%> (+0.02%)` | :arrow_up: | | [v3.11](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.27% <69.47%> (+0.02%)` | :arrow_up: | | [v3.12](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.27% <69.47%> (+0.02%)` | :arrow_up: | | [v3.7](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.24% <69.47%> (+0.02%)` | :arrow_up: | | [v3.8](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.27% <69.47%> (+0.02%)` | :arrow_up: | | [v3.9](https://app.codecov.io/gh/althonos/pyhmmer/pull/78/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde) | `79.27% <69.47%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Martin+Larralde#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.