You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your great work. I tested the cell embeddings generation function in a new dataset, and found an error:
File /gpfs/gibbs/pi/zhao/tl688/CellPLM/tutorials/CellPLM/utils/data.py:19, in sparse_scipy_to_tensor(x)
18 def sparse_scipy_to_tensor(x: scipy.sparse.csr_matrix):
---> 19 return torch.sparse_csr_tensor(x.indptr, x.indices, x.data, (x.shape[0], x.shape[1])).to_sparse().float().coalesce()
RuntimeError: crow_indices.shape[-1] must be equal to the number of rows + 1 (=47682), but got 17142
My dataset has 47681 cells and 17142 genes, and it seems that CellPLM identify my genes as cells. Is it possible to address it? Thanks.
I have checked that this dataset contains non zero gene expression.
The text was updated successfully, but these errors were encountered:
Hello, did you convert your dataset from a dense matrix to a csr sparse matrix? For example, adata.X = scipy.sparse.csr_matrix(adata.X). This should be crucial to the model.
I suppose there is an issue with the data format, but I'm surprised that the format checking codes didn't throw an exception.
Hi, thanks for your great work. I tested the cell embeddings generation function in a new dataset, and found an error:
My dataset has 47681 cells and 17142 genes, and it seems that CellPLM identify my genes as cells. Is it possible to address it? Thanks.
I have checked that this dataset contains non zero gene expression.
![image](https://private-user-images.githubusercontent.com/43333475/391337459-5ed0085f-0074-4ec9-a206-4c0cf9556193.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMTc3OTQsIm5iZiI6MTczOTAxNzQ5NCwicGF0aCI6Ii80MzMzMzQ3NS8zOTEzMzc0NTktNWVkMDA4NWYtMDA3NC00ZWM5LWEyMDYtNGMwY2Y5NTU2MTkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDEyMjQ1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkZWNlMzc2YjFkNjNiNThhYzUyZjdiZTE1N2MyZWI3YjIwNmIyOTVhYjgyMGMzODBmZmVhZDc5YWYzMjJjYTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.e7LcaxOBezSX64u2hsDlKD9WV2YKLUkG6VryHLQ1ZoM)
The text was updated successfully, but these errors were encountered: