openproblems-bio / openproblems

Formalizing and benchmarking open problems in single-cell genomics
MIT License
290 stars 77 forks source link

Change Cell2location to compute proportions #700

Closed vitkl closed 1 year ago

vitkl commented 1 year ago

Submission type

Testing

Submission guidelines

PR review checklist

This PR will be evaluated on the basis of the following checks:

codecov[bot] commented 1 year ago

Codecov Report

Base: 95.03% // Head: 95.04% // Increases project coverage by +0.00% :tada:

Coverage data is based on head (d367e36) compared to base (6b50d48). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #700 +/- ## ======================================= Coverage 95.03% 95.04% ======================================= Files 152 152 Lines 4052 4054 +2 Branches 206 206 ======================================= + Hits 3851 3853 +2 Misses 131 131 Partials 70 70 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `94.94% <100.00%> (+<0.01%)` | :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=openproblems-bio#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/openproblems-bio/openproblems/pull/700?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio) | Coverage Δ | | |---|---|---| | [...sks/spatial\_decomposition/methods/cell2location.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/700/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL3NwYXRpYWxfZGVjb21wb3NpdGlvbi9tZXRob2RzL2NlbGwybG9jYXRpb24ucHk=) | `96.66% <100.00%> (+0.11%)` | :arrow_up: | 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=openproblems-bio). 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=openproblems-bio)

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

vitkl commented 1 year ago

~@scottgigante~ @scottgigante-immunai this workflow fails for reasons unrelated to cell2location. Would be great to get your help

scottgigante-immunai commented 1 year ago

Looks like a flake, you can just click "rerun failed jobs"

scottgigante-immunai commented 1 year ago

I'll work on making these web requests less flaky

scottgigante-immunai commented 1 year ago

I don't think this will change anything -- we already check that the output is proportions. https://github.com/openproblems-bio/openproblems/blob/main/openproblems/tasks/spatial_decomposition/api.py#L45

vitkl commented 1 year ago

Cell2location code does not output proportions without this change. Are the proportions computed elsewhere?

scottgigante-immunai commented 1 year ago

Oh! Our tests weren't checking the right field. Apologies. PR to fix that here: https://github.com/openproblems-bio/openproblems/pull/702

scottgigante-immunai commented 1 year ago

Superseded by #702

vitkl commented 1 year ago

Fantastic, thank you for fixing it!