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

Error in plot.window(xlim = c(0, 1), ylim = c(0, max(matr))) : need finite 'ylim' values #26

Open
mdozmorov opened this issue Oct 16, 2024 · 1 comment

Comments

@mdozmorov
Copy link

I'm using DEXSeq results generated by the rnasplice Nextflow pipeline. The pipeline generates .RDS objects, with DEXSeqDataSet and DEXSeqResults. I tried plotting some genes of interest but getting:

Error in plot.window(xlim = c(0, 1), ylim = c(0, max(matr))) : 
  need finite 'ylim' values
In addition: Warning messages:
1: In max(coeff, na.rm = TRUE) :
  no non-missing arguments to max; returning -Inf
2: In vst(coeff, object) :
  Dispersion function not parametric, applying log2(x+ 1) instead of vst...
3: In max(matr) : no non-missing arguments to max; returning -Inf

This error occurs if using the DEXSeqResults object and after processing the DEXSeqDataSet object. I tried debugging the plotDEXSeq function, but it gets too complex. Here's a reproducible example using demo.rds

library(DEXSeq)
res <- readRDS("demo.rds")
plotDEXSeq(res, "ENSG00000291317")

This happens with other genes I tried. Please, help.

@Fabriesh
Copy link

Fabriesh commented Nov 5, 2024

I ran into the same problem when working with a manually constructed DEXSeqDataSet. It seems that the rowRanges object within the DEXSeqDataSet and within the resulting DEXSeqResults is essential for the plotDEXseq() and DEXSeqHTML() functions. I had to add the rowRanges manually using the featureRanges accessor in the DEXSeqDataSet() constructor function, using the corresponding values for seqnames=, ranges= and strand= that I got from my original FeatureCounts output.

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

2 participants