Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for linear mixed effects models via DREAM #363

Open
Tracked by #385
grst opened this issue Dec 2, 2024 · 2 comments
Open
Tracked by #385

Support for linear mixed effects models via DREAM #363

grst opened this issue Dec 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@grst
Copy link
Member

grst commented Dec 2, 2024

Description of feature

In #325/#339, an attempt was made to add support for limma mixed models. However, I believe this approach is not ideal for the following reasons

  • Limma supports only one random effect variable
  • It requires to manually combine multiple experimental factors into a single variable, therefore making it cumbersome to use

Alternatively, I propose to add support for a linear mixed effects model that generalizes to an arbitrary number of random effects and allows to specify random effect variables using Wilkinson formulas, e.g. ~ timepoint + (1 | patient_id).

An obvious candidate would be DREAM which is a generalization of limma/voom for random effects. It's certainly a good choice for gene expression data as it also does the empirical bayes shrinkage of gene dispersions.

However, there's also other models that could be condidered, e.g. MRMM, or plain lme4 models.

Depends on #362 for the Wilkinson formulae
Mixed effects models are also a way of addressing technical replicates -> fixes #220

CC @apeltzer @tschwarzl @nschcolnicov @atrigila @alanmmobbs93

@grst grst added the enhancement New feature or request label Dec 2, 2024
@nschcolnicov nschcolnicov moved this to ToDo - high priority in differentialabundance Dec 2, 2024
@grst grst mentioned this issue Dec 20, 2024
11 tasks
@grst
Copy link
Member Author

grst commented Dec 20, 2024

IMO DREAM is the prime candidate for mixed effect models on expression data.

  • create module for DREAM. It should work farily similar as the limma module
  • add DREAM to differential subworkflow.

@alanmmobbs93
Copy link

@nschcolnicov @atrigila @grst @apeltzer The basic module and a preliminary position within the workflow is completed. I'll work on defining some parameters that can be used to customize the modeling in Dream (like limma and deseq2). Later, we need to update the yml structure to decide how/when to call this module with the formula/contrasts definition. I think it can be used in parallel with deseq2 when there's no random variables associated as well. Just to open debate

@grst grst changed the title Support for linear mixed effects models Support for linear mixed effects models via DREAM Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: ToDo - high priority
Development

No branches or pull requests

2 participants