Closed mcap91 closed 3 years ago
Hello,
I figured out the issue for anyone who runs into this problem. There were in fact mislabeled gene names in the rows of my counts matrix. They were not NA
but they were ""
blank. I removed them and cellphoneDB worked fine. Thank you
Hello,
I have successfully run cellphoneDB with the test_counts.txt and test_meta.txt. I am trying to run data from a Seurat object but keep receiving this Unexpected/index error. Here is the output from cellphoneDB:
TypeError: cannot do label indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [nan] of <class 'float'>
I think my issue is arising from converting mouse to human genes (I am using --counts-data=gene_name). If I pull the data directly from the Seurat object following https://www.cellphonedb.org/faq-and-troubleshooting and submit to cellphoneDB I get:
presumably because these are mouse gene IDs?
However, when I run my mouse to human gene conversion (using biomaRt) and write the table using the same code from https://www.cellphonedb.org/faq-and-troubleshooting I get this indexing error in question.
There are no NAs in my counts. All row names match col names. I am using R to generate counts/meta input files. I have seen several posts about this issue. Has it been resolved? What index is it referring to?
Thank you, Mike