-
Notifications
You must be signed in to change notification settings - Fork 57
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
mod.samples & plot_genes_per_cell_type #143
Comments
with the latest version (updated yesterday), the correct use is: expected_dict = mod.module.model.compute_expected_per_cell_type(
mod.samples["post_sample_q05"], mod.adata_manager
)
This error suggests that Are you using a loaded model? If yes you need to add the mod.samples = adata.uns['mod'] |
Thank you for your answer, but when I tried to install the newest version when I try to install cell2location in a fresh environment: |
I am not sure but I think the problem was the scvi version with setup_anndata: |
Try recreating the environment now - looks like JAX issue was fixed by their developers. |
|
I am using a scRNA-seq file converted from Seurat object with sceasy. I have double-checked that the anndata contains raw counts. However, when I trained my data, in the inf_aver variable, the estimated expression seems weird. I have some marker genes that are specific to the cluster, but in the data, there are some clusters that do not show significant expression before training but are high in inf_aver. |
Yes, it seems solved. Thanks. |
I realized that it is completely my mistake. Thank you for your help. Everything works great. |
Hi again,
I used your tutorial as a template for my data and until the advanced use section, I got no error. Until here, I got perfect results.
For expected_dict = mod.module.model.compute_expected_per_cell_type(
mod.samples["post_sample_q05"], mod.adata
)
I am getting the error of 'Cell2location' object has no attribute 'samples'
For the
plot_genes_per_cell_type, I referred to the issue #121, copied and pasted the function, and I am getting the following error:
KeyError: 'Smooth_muscle_cells'
I was suspected whether dashes/underscores makes a difference in python, and I changed the names of clusters as above. Before that run, I was getting same error with another cluster name.
I was wondering what could be the reason for them. I would appreciate some help. Thank you very much in advance.
The text was updated successfully, but these errors were encountered: