Scater package PlotExpression
1
0
Entering edit mode
@mayankgeit89-16829
Last seen 5.7 years ago

Hi,

When I try to run the « plotExpression » function of « scater » R package as described in this tutorial https://bioconductor.org/packages/release/bioc/vignettes/scater/inst/doc/vignette-dataviz.html , an error occurs:

> plotExpression(example_sce, rownames(example_sce)[1:6], x = "Mutation_Status", exprs_values = "counts")

Error in .subset2(x, i, exact = exact) : no such index at level 1

Errors is triggered only when x corresponds to a “colData” of my “SingleCellExperiment” object and not when x corresponds to a “rowname” of the same object:

> plotExpression(example_sce, rownames(example_sce)[1:6], x = "Gene_0002", exprs_values = "logcounts")

No Error

[version of Bioconductor packages: “scater” = 1.6.3 & “SingleCellExperiment” = 1.0.0]

Please help

 

Thanks!

scater • 1.7k views
ADD COMMENT
0
Entering edit mode

Could you try using the latest version of SingleCellExperiment (1.2.*) and scater (1.8.*)?

ADD REPLY
0
Entering edit mode

In my case Rstudio points to R 3.4 version. And upgrading R may impact a lot. 

Both SingleCellExperiment (1.2.*) and scater (1.8.*) requires R (>= 3.5).

 

ADD REPLY
0
Entering edit mode

Look. Let's assume there is a bug in the old version of scater. Even if I were to fix the bug, I would only push the bugfix to the latest version of scater. So you'd have to download and install the latest version anyway.

As a developer, I can only guarantee the performance of the current versions of all packages. If you use old versions, I can't help much with bugs; and nor do I want to, because I probably fixed them in the latest version.

ADD REPLY
0
Entering edit mode

It is possible to have multiple versions of R installed, and to tell RStudio to use one or another, so that you can install a current R and current Bioconductor without disrupting your R 3.4 installation. Some hints may be found at https://cran.r-project.org/web/packages/BiocManager/vignettes/BiocManager.html#managing-multiple-versions and by googling RSTUDIO_WHICH_R

ADD REPLY
0
Entering edit mode

Hello Martin,

Thanks for reply!

It worked  in different environment with SingleCellExperiment (1.2.0) and scater (1.8.2).

I had some production data where I am using R 3.4. and having user base 100+ .It may impact to other user if i will update RSTUDIO_WHICH_R.

Is there any other way.

 

Thanks!

ADD REPLY
0
Entering edit mode
@mayankgeit89-16829
Last seen 5.7 years ago

It was due to ggplot2 version 

previously I was using ggplot2_3.0.0 version. And later on it was resolved by ggplot2_2.2.1 version

Thanks!

ADD COMMENT

Login before adding your answer.

Traffic: 511 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6