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

Error in as.matrix(adata@[email protected])[markers, ] : subscript out of bounds #2

Open
xiangyupan opened this issue Jan 15, 2025 · 2 comments

Comments

@xiangyupan
Copy link

Hi anyone,

It's so exciting for the excellent package calculating cell differential potency. But when an error happened when I run the codes following the GitHub.
image
As the scRNA-seq is the limb regeneration data of axolotl. I replace the cell cycle genes by re-input the axolotl gene ID. My code is as follows:
image
image

Hope for your reply. Thank you very much.

@xiangyupan
Copy link
Author

Hi @kma2112
I have tried another method when running run_stemFinder by replacing method = 'stdev', it works well. Although I still can not resolve the question above, but I have got the stemFinder score. Still hope for your reply.

@kma2112
Copy link
Collaborator

kma2112 commented Jan 17, 2025

Thank you for using this tool!

First, let's make sure that all of the genes in your cell cycle gene list inputted to run_stemFinder are included in your counts matrix so the subsetting step does not return an out of bounds error. It looks like you selected for only cell cycle genes in the data, however, but would you mind double checking length(cell_cycle_genes[cell_cycle_genes %in% rownames(as.matrix(adata@assays$[email protected]))]) ?

Is your data scaled (can you print the first five rows and columns of adata@assays$[email protected] for me)?

Finally, would you mind sharing your sessionInfo()? Thank you!

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

2 participants