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

invalid character indexing #14

Closed
hummuscience opened this issue May 21, 2020 · 3 comments
Closed

invalid character indexing #14

hummuscience opened this issue May 21, 2020 · 3 comments
Labels
bug Something isn't working
Projects

Comments

@hummuscience
Copy link

I have a seurat object with approx 100k cells, these are my settings for running the function:

clu_markers <- findmarkergenes(combined,
                               species = "Mouse",
                               cluster = c("0","23","21"),
                               match_CellMatch = TRUE,
                               cancer = NULL,
                               tissue = c("Blood","Brain","Spinal cord"),
                               cell_min_pct = 0.25,
                               logfc = 0.25,
                               pvalue = 0.05)

And this is the output:

Note: the new data matrix includes 98465 cells and 22161 genes. 

Note: there are 3776 potential marker genes in CellMatch database for Mouse on Blood, Brain, Spinal cord. 

Finding potential marker genes for cluster 0 
***Done*** 
Finding potential marker genes for cluster 21 
Error in intI(j, n = x@Dim[2], dn[[2]], give.dn = FALSE) : 
  invalid character indexing

I ran it before with an additional cluster "5" in the vector and it did the same thing (after running cluster 0 successfully). So I thought it is something about cluster 5 and removed it from the list and re-ran. Now it is not working for cluster 21 so I am figuring this is another general issue.

@hummuscience
Copy link
Author

I got the error also when I set one cluster only:

clu_markers0 <- findmarkergenes(combined,
                               species = "Mouse",
                               cluster = '21',
                               match_CellMatch = TRUE,
                               cancer = NULL,
                               tissue = c("Blood","Brain"),
                               cell_min_pct = 0.25,
                               logfc = 0.25,
                               pvalue = 0.05)

@ZJUFanLab
Copy link
Owner

Hello, I have no idea about the Error in intI(j, n = x@Dim[2], dn[[2]], give.dn = FALSE) : invalid character indexing since intI(j, n = x@Dim[2], dn[[2]], give.dn = FALSE) don't match the related codes in the findmarkergenes. Maybe you can send the Seurat object to Xin Shao(xin_shao@zju.edu.cn) for help to figure it out, he will check the code line by line based on your data. As your data is too large, you can send a part of data by deceasing the gene number, like a 100k cells*100 genes instead of the raw 100k cell-gene matrix.

@multitalk
Copy link
Collaborator

Hello, I have fix the bug you meet, you can try it now. Thanks!

@multitalk multitalk added the bug Something isn't working label Jun 20, 2020
@multitalk multitalk added this to Fixed bugs in De-bug Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
De-bug
  
Fixed bugs
Development

No branches or pull requests

3 participants