Skip to content

PC regression: optimise backend - #430

Merged
mumichae merged 18 commits into
mainfrom
pcr_optimise_backend
Apr 24, 2026
Merged

mumichae merged 18 commits into
mainfrom
pcr_optimise_backend

Conversation

@mumichae

@mumichae mumichae commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator
  • add a one-way ANOVA for more efficient R2 computation of single categorical covariate
  • use sparse one-hot encoding for sklearn

@codecov

codecov Bot commented Apr 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21053% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.33%. Comparing base (b73b18d) to head (cfd0669).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
scib/metrics/pcr.py 84.50% 11 Missing ⚠️
scib/preprocessing.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #430      +/-   ##
==========================================
- Coverage   56.69%   52.33%   -4.37%     
==========================================
  Files          22       22              
  Lines        1709     1756      +47     
==========================================
- Hits          969      919      -50     
- Misses        740      837      +97     
Flag Coverage Δ
unittests 52.33% <84.21%> (-4.37%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
scib/metrics/__init__.py 100.00% <100.00%> (ø)
scib/metrics/lisi.py 80.47% <100.00%> (ø)
scib/preprocessing.py 23.35% <0.00%> (ø)
scib/metrics/pcr.py 82.38% <84.50%> (-3.33%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mumichae
mumichae merged commit 8e5e4c7 into main Apr 24, 2026
9 of 10 checks passed
@mumichae
mumichae deleted the pcr_optimise_backend branch April 24, 2026 14:31
barlowa124 pushed a commit to barlowa124/scib that referenced this pull request Dec 4, 2026
* use sparse one-hot encoding for sklearn

* add one-way ANOVA implementation fo numpy approach when single categorical covariate is provided

* reformat code

* use dictionary for different linreg implementations

* update documentation

* add test for sparse one-hot and benchmark for different linreg implementations

* chore: update pre-commit and remove autopep

* style: adjust formatting settings

* test: update skip benchmark for CI tests

* test: add test for continuous covariates

* style: fix pytest ini syntax

* add zarr as dependency

* pin rpy2<3.5

* move optional dependencies to pyproject.toml

* remove setup.cfg, move to pyproject.toml only (and separate .flake8)

* set LD_LIBRARY_PATH for R for rpy2 tests

* skip failing rpy2 tests

* relax clustering assertions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant