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

Use AddMetaData #241

Merged
merged 2 commits into from
Nov 22, 2023
Merged

Use AddMetaData #241

merged 2 commits into from
Nov 22, 2023

Conversation

jashapiro
Copy link
Member

Closes #239

This ended up a pretty small fix: I used the AddMetaData Seurat function rather than adding directly to the slot. I think we actually were adding the wrong slot anyway: we had been using var.features, whereas I think the correct slot was meta.features all along. Which can be accessed with just object[[assay]][[]] as I do in the tests now.

I think I could have used object[[assay]][[]] <- rowdata, but this seemed safer.

I tested with both Seurat 4.4 and 5.0, and both seemed to work on my machine.

Copy link
Member

@allyhawkins allyhawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this, LGTM!

@jashapiro jashapiro merged commit 8d3440c into main Nov 22, 2023
2 checks passed
@jashapiro jashapiro deleted the jashapiro/seurat5ish branch November 22, 2023 19:47
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.

Accomodate Seurat 5
2 participants