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

Fix GroupCorrelation and GroupCorrelationPlot for Seurat V5 compatibility #9625

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joesphbeller
Copy link

Discussed in issue #9483

Problem

In spatial_vignette.Rmd, GroupCorrelation() and GroupCorrelationPlot() would both generate the following error:

"Error in object[[assay]][] <- grp.cors: object of type 'S4' is not subsettable"

This is because the correlation was being stored in metafeatures, which is no longer an element of the assay in V5.

Solution

Insert 2 try() statements to make it compatible for previous and most recent versions of Seurat

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

Successfully merging this pull request may close these issues.

1 participant