-
Notifications
You must be signed in to change notification settings - Fork 104
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
error from scv.pp.moments(adata) #1260
Comments
You can either install scvelo from source or downgrade scipy. |
Which version of scipy should it work with? |
Making a fresh conda environment and installing scvelo from source fixed the issue. |
tried scipy 1.13.1, works. |
* first attempt at macos m1 environment using micromamba * scipy==1.13.1 (theislab/scvelo#1260) * fix switch between environments * add news
Has that been fixed by now?! scanpy==1.10.3 |
@stela2502, it's fixed on |
Thank you. |
Just a stupid question - is there no way to get a bugfix out in the open more quickly than in 4 month (assuming the fix is out next month). Or would that fix create an error for other people still using the other matrix elements? |
Hi Team,
I plan to run scv.pp.moments(adata) using example data (scv.datasets.pancreas()), but I got the error pasted below, (Python version 3.10, scvelo version: 0.3.2), do you know how to fix it? please feel free to let me know if you need to see any other information from the attempted run. Thank you so much.
scv.pp.moments(adata)
Traceback (most recent call last):
File "", line 1, in
File "/home/guoqq/.local/lib/python3.10/site-packages/scvelo/preprocessing/moments.py", line 63, in moments
neighbors(
File "/home/guoqq/.local/lib/python3.10/site-packages/scvelo/preprocessing/neighbors.py", line 223, in neighbors
n_duplicate_cells = len(get_duplicate_cells(adata))
File "/home/guoqq/.local/lib/python3.10/site-packages/scvelo/preprocessing/neighbors.py", line 555, in get_duplicate_cells
X_new = np.array(X[idx_dup].A if issparse(X) else X[idx_dup])
AttributeError: 'csr_matrix' object has no attribute 'A'
The text was updated successfully, but these errors were encountered: