Closed rue1996 closed 2 years ago
Hi
This interface is deprecated. Please install latest version and follow the latest tutorial: https://cell2location.readthedocs.io/en/latest/notebooks/cell2location_tutorial.html
On Tue, 11 Jan 2022, 13:59 rue1996, @.***> wrote:
I am getting this error when i am running: training the model
Traceback (most recent call last): File "/scratch/ms/visium_08_10_21/brain_visium_data/Allen_brain/allen_convert.py", line 44, in r, adata_snrna_raw = run_regression(adata_snrna_raw, # input data object] File "/home/ms/.local/lib/python3.9/site-packages/cell2location/run_regression.py", line 144, in run_regression X_data = sc_data.raw.X.toarray() AttributeError: 'numpy.ndarray' object has no attribute 'toarray'
Not sure if it is still the issue that this only works with sparse.matrix and not numpy array?
— Reply to this email directly, view it on GitHub https://github.com/BayraktarLab/cell2location/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFMFTV3HWNYECROIR6K3IADUVQZV5ANCNFSM5LWMGH7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
I am getting this error when i am running: training the model
Traceback (most recent call last): File "/scratch/ms/visium_08_10_21/brain_visium_data/Allen_brain/allen_convert.py", line 44, in
r, adata_snrna_raw = run_regression(adata_snrna_raw, # input data object]
File "/home/ms/.local/lib/python3.9/site-packages/cell2location/run_regression.py", line 144, in run_regression X_data = sc_data.raw.X.toarray()
AttributeError: 'numpy.ndarray' object has no attribute 'toarray'
Not sure if it is still the issue that this only works with sparse.matrix and not numpy array?