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

addModuleScore error and general errors #8830

Open
jimena2 opened this issue Apr 28, 2024 · 0 comments
Open

addModuleScore error and general errors #8830

jimena2 opened this issue Apr 28, 2024 · 0 comments

Comments

@jimena2
Copy link

jimena2 commented Apr 28, 2024

I would like to addModuleScore to my R object.
If I use my default assay of integrated, then I get errors that my features are not present in my object

If I switch to RNA assay as my default, I get the following error:
Error in GetAssayData(): ! GetAssayData doesn't work for multiple layers in v5 assay. Run rlang::last_trace() to see where the error occurred.

I've tried the function on another R object and it works, however I cannot get it to work with my current object and am unsure why.

It works for this one:
Screenshot 2024-04-27 at 11 27 07 PM
does not work for this one:
Screenshot 2024-04-27 at 11 27 44 PM

I also am not sure why I have layers present like "scale.data.mock2.1" in my monkeypox.integrated object, this becomes an error when I attempt to access the data at:
rownames(monkeypox.integrated@assays$RNA$counts)
where it makes me pick either counts.mock2.1 or counts.mkpx2.2, but am unsure which one to use in the context of calculating DEGs and running string DB. How do you know when to use which?

@jimena2 jimena2 changed the title addModuleScore error and general errors please send help addModuleScore error and general errors Apr 30, 2024
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

1 participant