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

Future support for limma-voom pipeline: vsFourWay() #10

Open
nztao opened this issue Sep 5, 2022 · 0 comments
Open

Future support for limma-voom pipeline: vsFourWay() #10

nztao opened this issue Sep 5, 2022 · 0 comments

Comments

@nztao
Copy link

nztao commented Sep 5, 2022

The vsFourWay function does not support eBayes transformed DGEList-objects from the limma-voom pipeline.
For example, I followed a demonstration similar to this posted guide:

> # limma-voom DGEList-objects do not work with `vsFourWay()`
> #Packages needed
> if (!require("BiocManager", quietly = TRUE))
>     install.packages("BiocManager")
> 
> BiocManager::install(c("limma", "edgeR", "vidger"))
> 
> library(limma)
> library(edgeR)
> library(vidger)
> 
> #Load and read in example RNAseq123 data from wd()
> #https://github.com/hasaru-k/GlimmaV2/blob/master/inst/RNAseq123/
> dge <- readRDS("dge.rds")
> design <- readRDS(
>   system.file("RNAseq123/design.rds", package = "Glimma"))
> contr.matrix <- readRDS(
>   system.file("RNAseq123/contr.matrix.rds", package = "Glimma"))
> 
> #Using limma-voom to calculate test statistics for each gene.
> v <- voom(dge, design)
> vfit <- lmFit(v, design)
> vfit <- contrasts.fit(vfit, contrasts = contr.matrix)
> efit <- eBayes(vfit)
> 
> # Example incompatibility with limma-voom 
> vsFourWay(
>     x = 'LP', y = 'ML', control = 'Basal', data = dge,
>     d.factor = NULL, type = 'edger', padj = 0.05, x.lim = NULL,
>     y.lim = NULL, lfc = NULL, legend = TRUE, title = TRUE, grid = TRUE
> )

When directly referencing the dge or efit objects, I get the following error:

Error in exactTest(data, pair = c(control, x)) :
specified dispersion not found in object

The vsFourWay function appears to only recognize the estimateDisp transformation for DGEList-objects processed using the edgeR quasi-likelihood pipeline. Will there be future support for DGEList-objects using limma-voom DE analysis?

Thank you!

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

No branches or pull requests

1 participant