pertpy icon indicating copy to clipboard operation
pertpy copied to clipboard

Add linear mixed effects model to DE interface

Open grst opened this issue 1 year ago • 0 comments

Description of feature

Description of feature

They can be used to either perform tests on all cells, including the sample as random effect, or on pseudobulk when there are designs that require random effects.

Methods

Model specification

  • Neither formulaic nor patsy currently allow for random effects. There's a PR open to add support https://github.com/matthewwardrop/formulaic/pull/34
  • formulae allows specifying random effects: https://github.com/bambinos/formulae
  • Alternatively, it could be possible to specify two formulas, one for fixed and one for random effects.

Migrated from https://github.com/scverse/multi-condition-comparisions/issues/20

grst avatar May 27 '24 07:05 grst