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

Multiple variables/interactions #211

Open
mtruglio opened this issue Dec 4, 2023 · 2 comments
Open

Multiple variables/interactions #211

mtruglio opened this issue Dec 4, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mtruglio
Copy link

mtruglio commented Dec 4, 2023

Description of feature

Hello,
My experimental design is longitudinal (i.e. time series), and my main focus is finding DE genes in the interaction between treatment (yes/control) and time (T0....T6). My metadata header looks like this:

sample treatment time

The DESeq2 model would be something like:

dds <- DESeqDataSetFromMatrix(countData = counts,
                              colData = colData,
                              design = ~ treatment + time + treatment:time)

Now, as far as I know, the contrast file only allows one variable and one reference level. Is there a way to use this pipeline for my case (two variables, two reference levels) with some contrasts magic? If not, can it be implemented?

Thanks

@mtruglio mtruglio added the enhancement New feature or request label Dec 4, 2023
@pinin4fjords
Copy link
Member

So, we haven't yet engineered any functionality for this explicitly as you have noticed. PRs welcome- the DESeq module is here: https://github.com/nf-core/modules/tree/master/modules/nf-core/deseq2/differential

I haven't though hard about this but.... if you included the extra parts in the blocking column like time;treatment:time it would get into the model, if it were not for the checks carried out here. You could try removing that check on a fork and seeing if that worked.

@seb-mueller
Copy link

Same issue here, any updated on this issue? Does the suggested solution work?

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
None yet
Development

No branches or pull requests

3 participants