Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1147 +/- ##
==========================================
+ Coverage 75.69% 75.96% +0.26%
==========================================
Files 55 56 +1
Lines 8431 8537 +106
==========================================
+ Hits 6382 6485 +103
- Misses 2049 2052 +3
🚀 New features to boost your workflow:
|
Sizerta
force-pushed
the
linear-mixed-model
branch
from
October 2, 2026 10:27
93ecbb2 to
393767b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
docsis updatedDescription of changes
Closes #614
This adds
pt.tl.LinearMixedModelto the DE interface.It wraps statsmodels'
MixedLMand fits one mixed model per variable with a random intercept. This means you can use all your cells while accounting for the donor they came from, or use random effects in pseudobulk-style designs.The random-intercept syntax is the same
(1 | variable)syntax already used by Milo, thanks to reusingparse_random_effects:Technical details
Statsmodelswithout the random effect 57%. A calibration test is included.methodis explicitly provided. Any genuine remaining failures are reported once via a warning and theconvergedcolumn.LinearModelBase.compare_groupsnow builds its formula through_comparison_design, which letsLinearMixedModelturnpaired_byinto a random intercept without changing the existing behavior of other methods.n_jobsparallelization just likeStatsmodels.