openproblems-bio / openproblems

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

Add ALRA preprocessing identical to literature #763

Closed wes-lewis closed 1 year ago

wes-lewis commented 1 year ago

Submission type

Testing

Submission guidelines

PR review checklist

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

wes-lewis commented 1 year ago

Seems some issues with docker images might be in the way--am re-running now https://github.com/wes-lewis/SingleCellOpenProblems/actions/runs/3850077442/jobs/6559813810

wes-lewis commented 1 year ago

Was getting an error with tocsr(). Local testing showed using scipy to cast as csr worked, but I continued to get image build issues, and it seemed scipy was not included in openproblems base image, R base, or R extras (unless I overlooked/was absent from README's). I created another PR to add scipy to r-extras in the meantime.

However, tocsr() was working in the merged version of alra.py, so I may just have to check output types from the normalizations prior to the tocsr() line.

scottgigante-immunai commented 1 year ago

Scipy is a core dependency of openproblems and is installed in all images. See https://github.com/openproblems-bio/openproblems/blob/main/setup.py

scottgigante-immunai commented 1 year ago

This, on the other hand, is a flake. Worth rerunning it and seeing what the error is.

scottgigante-immunai commented 1 year ago

Switching back to draft as nextflow tests haven't passed yet (see issue template in first comment.)

wes-lewis commented 1 year ago

Switching back to draft as nextflow tests haven't passed yet (see issue template in first comment.)

I'm a bit confused about what the 'issue template' refers to?

scottgigante-immunai commented 1 year ago

https://github.com/openproblems-bio/openproblems/pull/763#issue-1517865094

image

You should convert from draft only after you include the link to the passed test run

scottgigante-immunai commented 1 year ago

Tests at https://tower.nf/orgs/openproblems-bio/workspaces/openproblems-bio/watch/4l0dEfrCB00jgp

codecov[bot] commented 1 year ago

Codecov Report

Base: 94.78% // Head: 94.93% // Increases project coverage by +0.15% :tada:

Coverage data is based on head (86b1af8) compared to base (3d8964a). Patch coverage: 99.36% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #763 +/- ## ========================================== + Coverage 94.78% 94.93% +0.15% ========================================== Files 155 157 +2 Lines 4163 4287 +124 Branches 215 227 +12 ========================================== + Hits 3946 4070 +124 Misses 142 142 Partials 75 75 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `94.93% <99.36%> (+0.15%)` | :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/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio) | Coverage Δ | | |---|---|---| | [...oblems/data/Wagner\_2018\_zebrafish\_embryo\_CRISPR.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL2RhdGEvV2FnbmVyXzIwMThfemVicmFmaXNoX2VtYnJ5b19DUklTUFIucHk=) | `0.00% <ø> (ø)` | | | [openproblems/data/multimodal/citeseq.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL2RhdGEvbXVsdGltb2RhbC9jaXRlc2VxLnB5) | `100.00% <ø> (ø)` | | | [openproblems/data/tabula\_muris\_senis.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL2RhdGEvdGFidWxhX211cmlzX3NlbmlzLnB5) | `83.11% <ø> (ø)` | | | [...ration/batch\_integration\_embed/metrics/cc\_score.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL2NjX3Njb3JlLnB5) | `100.00% <ø> (ø)` | | | [...n/batch\_integration\_embed/metrics/iso\_label\_sil.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL2lzb19sYWJlbF9zaWwucHk=) | `100.00% <ø> (ø)` | | | [...ntegration/batch\_integration\_embed/metrics/kBET.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL2tCRVQucHk=) | `100.00% <ø> (ø)` | | | [...integration/batch\_integration\_embed/metrics/pcr.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL3Bjci5weQ==) | `100.00% <ø> (ø)` | | | [...ation/batch\_integration\_embed/metrics/sil\_batch.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL3NpbF9iYXRjaC5weQ==) | `100.00% <ø> (ø)` | | | [...tion/batch\_integration\_embed/metrics/silhouette.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9lbWJlZC9tZXRyaWNzL3NpbGhvdWV0dGUucHk=) | `100.00% <ø> (ø)` | | | [...tion/batch\_integration\_feature/methods/baseline.py](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio#diff-b3BlbnByb2JsZW1zL3Rhc2tzL19iYXRjaF9pbnRlZ3JhdGlvbi9iYXRjaF9pbnRlZ3JhdGlvbl9mZWF0dXJlL21ldGhvZHMvYmFzZWxpbmUucHk=) | `100.00% <ø> (ø)` | | | ... and [97 more](https://codecov.io/gh/openproblems-bio/openproblems/pull/763?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openproblems-bio) | | 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.