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

multiSpecificity() Not compatible with seurat v5 #11

Open
DrGin-hub opened this issue Mar 1, 2024 · 2 comments
Open

multiSpecificity() Not compatible with seurat v5 #11

DrGin-hub opened this issue Mar 1, 2024 · 2 comments

Comments

@DrGin-hub
Copy link

Here the error

multiSpecificity(object = seurat_object_v5)

Error in getExpressionMatrix(object, which.data = "data") :
no slot of name "data" for this object of class "Assay5"

I think an update in the package to make it compatible with Seurat v5 would be great

@simran-9849
Copy link

simran-9849 commented Dec 11, 2024

Hii,
I'm running into the same issue when trying to use func multiSpecificity() for seurat object v5. Can you please let me know how you fixed the issue if you could? Appreciate your help!

Thank you

@Mayank0512
Copy link

Mayank0512 commented Jan 3, 2025

Hii,

I was facing the same issue. If the default assay is set to SCT the GetAssayData on which the getExpressionMatrix(object, which.data = "data") depends works and the error is resolved for me!

Incase SCT is not what you prefer and you have your normalized data stored differently, you can modify the function easily by just changing how you access the data. Doing this should be easy, write the same function as on GitHub of scMiko for getExpressionMatrix by updating the way to access the data and then use the following commands to overwrite the existinbg function in scMiko :-

Override the package function

unlockBinding("getExpressionMatrix", asNamespace("scMiko"))
assign("getExpressionMatrix", getExpressionMatrix, envir = asNamespace("scMiko"))
lockBinding("getExpressionMatrix", asNamespace("scMiko))

Hope this helps!

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

No branches or pull requests

3 participants