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
AttributeError Traceback (most recent call last)
Cell In[37], line 4
1 import magic
3 # Apply MAGIC for PCA data denoising
----> 4 magic_op = magic.MAGIC(random_state=random_seed, solver='approximate', n_pca=n_comps)
5 X_magic = magic_op.fit_transform(data.X, genes='pca_only')
6 data.obsm['X_magic_pca'] = X_magic
AttributeError: module 'magic' has no attribute 'MAGIC'
The error module 'magic' has no attribute 'MAGIC' is due to the fact that magic-impute is imported as magic and also python-magic is also imported in a similar fashion. I thought uninstalling python-magic would fix the issue but the issue persists. Can you improve the naming so that it does not conflict with the magic package for images?
The text was updated successfully, but these errors were encountered:
Describe the bug
The error
module 'magic' has no attribute 'MAGIC'
is due to the fact thatmagic-impute
is imported asmagic
and alsopython-magic
is also imported in a similar fashion. I thought uninstalling python-magic would fix the issue but the issue persists. Can you improve the naming so that it does not conflict with the magic package for images?The text was updated successfully, but these errors were encountered: