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

Attribute error : module 'tangram' has no attribute 'map_cells_to_space' #107

Closed
Shikari666 opened this issue Nov 6, 2023 · 2 comments
Closed

Comments

@Shikari666
Copy link

Tangram package says ---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 ad_map = tg.map_cells_to_space(
2 adata_sc,
3 adata_st,
4 mode="constrained",
5 target_count=adata_st.obs.cell_count.sum(),

AttributeError: module 'tangram' has no attribute 'map_cells_to_space' when trying to run a example snippet code ad_map = tg.map_cells_to_space(
adata_sc,
adata_st,
mode="constrained",
target_count=adata_st.obs.cell_count.sum(),
density_prior=np.array(adata_st.obs.cell_count) / adata_st.obs.cell_count.sum(),
num_epochs=1000,
device="cpu",
)

@gaddamshreya1
Copy link
Collaborator

Hi @Shikari666,

Thank you for you interest in Tangram!
This is happening because you have the incorrect tangram package installed. Could you try the following:

pip uninstall tangram 
pip install tangram-sc

I'm sure this will work. Otherwise please let me know!

  • Shreya

@gaddamshreya1 gaddamshreya1 pinned this issue Nov 7, 2023
@Shikari666
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants