Closed jdime closed 4 years ago
Hi Javier, thanks for the report.
I couldn't reproduce your error, we have tested STACAS on R 4.0.2 and have not seen this error.
Can you check whether your installation of Seurat works? e.g.
library(Seurat)
data(STACAS.sampledata)
Seurat::FindIntegrationAnchors(STACAS.sampledata)
Thanks Massimo.
I ran the commands that you told me and they ran fine. I could obtain anchors using either R v3.6.1 or R v4.0.2.
> Seurat::FindIntegrationAnchors(STACAS.sampledata)
...
Retained 2148 anchors
|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=03m 14s
An AnchorSet object containing 14672 anchors between 3 Seurat objects
This can be used as input to IntegrateData or TransferData.
However, I figured that when I upgraded R to v4.0.2, I installed Seurat v3.2.1; whereas with R v3.6.1 I had Seurat v3.1.1.
I installed Seurat v3.2.1 in an R v3.6.1 and I got the same error Error: $ operator not defined for this S4 class
. So it's likely an issue related to Seurat v3.2.1 rather than the R version. Did you try Seurat v3.2.1 too?
Add to my previous post, using R v4.0.2 with Seurat v3.1.1, also worked out.
But downgrading Seurat from v3.2.1 to v3.1.1 was a little tricky. I had to install:
BiocManager::install("multtest") ## needed by Seurat v3.1.1, also installed "multcomp" remotes::install_version("adehabitat") ## Needed by SDMTools remotes::install_version("SDMTools", "1.1-221") ## Note SDMTools is deprecated, but needed by Seurat v3.1.1 devtools::install_github(repo = "satijalab/seurat", ref = "fc4a4f5") # Seurat v3.1.1
Thanks for isolating the problem!
Indeed, the newer version of Seurat changed the format of some data structures which were incompatible with STACAS.
I have now pushed an updated version which should solve the compatibility issue with Seurat 3.2.1 and R v4.
Let us know if you encounter more issues with the package, cheers!
Thanks. The fix worked out in my system.
Hello,
Thanks for the package. I made a script and it worked out using R v3.6.1, but I needed to upgrade to R v4.0.2, and now using the same script I get an error
Error: $ operator not defined for this S4 class
. Indeed, I get the same error using the STACAS demo (see below). I tried also in a Linux with R v4.0.0 and got the same error.Have you made STACAS work in R v4.0.X?
Thanks.
My sessionInfo() is: