-
Notifications
You must be signed in to change notification settings - Fork 924
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
Bugfix to as.SingleCellExperiment #4532
Conversation
Note: this adds a test case to illustrate the failure |
Check if SingleCellExperiment is installed before checking Kill tests that require Bioc 3.13/R 4.1
Thanks for taking care of this! The issue is not entirely with Seurat v4.0.2, but also with SingleCellExperiment 1.14.1 (Bioc 3.13) changing how they handle the primary altExp. Prior versions of SingleCellExperiment had all alternate experiments stored together as altExps, but the latest version moves the primary altExp to mainExp I've made some modifications to your tests:
|
@mojaveazure OK, thanks. what's your release schedule for bugfixes like this? |
Once the CI passes, we'll get this merged into the |
Update changelog
@mojaveazure OK. While I have you, have you noticed this new warning (which seems like a simple bug): satijalab/seurat-object#13 |
The warning Feedback we got from this switch was that when users passed a v2 parameter to a v3 function, that parameter was silently ignored and the v3 default was silently used instead. In order to make it clear when a v2 parameter was ignored, we introduced The reason this specific warning is happening is that we introduced the ability to use It is not a bug, so it's a lower priority for us, but we understand the confusion and will work to address it |
This is related to the issue I opened here: #4531, which includes a simple repro case.
Whenever I run as.SingleCellExperiment(), it gives errors like this:
Error in value[3L] :
invalid subscript 'e' in 'altExp(, type="character", ...)':
'RNA' not in 'altExpNames()'
I believe the issue is that the 4.0.2 version of as.SingleCellExperiment tries to call SingleCellExperiment::swapAltExp() when passing the name of the currently active experiment.
I think that worked in as.Seurat.SingleCellExperiment(), since you inject "originalexp" into the object, so iterating the true assay names works.