Closed auesro closed 2 years ago
Hi, we assume the expression data (data.X) as a numpy array. It seems your expression data (data.X) is a sparse CSR matrix which does not support flatten(). I guess you did not preprocess the expression and just use the raw count data (so it is saved as a sparse matrix)? If you follow the data preprocessing procedures as given in getExample.py (including filtering, normalization, log transformation and scaling), you should end up with a numpy array saved as data.X.
Thanks, solved it following a modified version of your script.
Thanks for the feedback. We would recommend you also trying to use preprocessed data. You may follow similar preprocessing steps (i.e. filtering, normalization, log transformation and scaling) as we show in the getExample.py script.
Dear UNIFAN team,
I have come across an error when analyzing my own dataset (23925 cells, 4000 variable genes) when using the example notebook provided (no issues at all when running the example dataset) in the cell 10:
Something I noticed is that
exp_variable_genes
is anArray of float32
when using the test dataset while with my data is asparse.csr.csr_matrix
...Any ideas?
Thanks!