Skip to content
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

DestVI tutorial is not running #357

Open
ori-kron-wis opened this issue Sep 26, 2024 · 1 comment
Open

DestVI tutorial is not running #357

ori-kron-wis opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ori-kron-wis
Copy link
Contributor

There is several logic issues with the current destVI version tutorial that need to be taken care of.

There is something wrong there towards end of tutorial, every step starting destvi_utils.explore_gamma_space is not working

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[28], line 1
----> 1 destvi_utils.explore_gamma_space(st_model,sc_model,ct_list=ct_list,ct_thresholds=ct_thresholds)

File /usr/local/lib/python3.12/site-packages/destvi_utils/_destvi_utils.py:295, in explore_gamma_space(st_model, sc_model, st_adata, ct_thresholds, output_file, ct_list, key_proportions, key_spatial)
    291 sc_adata_slice = sc_adata[
    292     sc_adata.obs[sc_model.registry_["setup_args"]["labels_key"]] == name_ct
    293 ].copy()
    294 is_sparse = issparse(sc_adata_slice.X)
--> 295 normalized_counts = sc_adata_slice.X.A if is_sparse else sc_adata_slice.X
    296 indices_ct = np.where(
    297     sc_adata.obs[sc_model.registry_["setup_args"]["labels_key"]] == name_ct
    298 )[0]
    300 sc_latent = sc_model.get_latent_representation(indices=indices_ct)

AttributeError: 'csr_matrix' object has no attribute 'A'
[Paste the error output produced by the above code here]

Versions:

1.2

@ori-kron-wis ori-kron-wis added the bug Something isn't working label Sep 26, 2024
@ori-kron-wis
Copy link
Contributor Author

We will wait for DestVI-v2 as @canergen suggested and will update tutorial then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant