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

Sparsity_sc and sparsity_sp = 0 #118

Open
gboscagli opened this issue Apr 16, 2024 · 0 comments
Open

Sparsity_sc and sparsity_sp = 0 #118

gboscagli opened this issue Apr 16, 2024 · 0 comments

Comments

@gboscagli
Copy link

gboscagli commented Apr 16, 2024

Greetings,

I'm using Tangram to map a scRNA-seq reference of mouse lung into a spatial dataset (Visium 10X) of the same tissue. Both datasets are preprocessed using standard Scanpy pipelines. I followed the Tangram tutorial available in the Squidpy docs, so I segmented the cells using watershed and used the resulting cell count to tailor the target_count and density_prior for map_cells_to_space, as shown in the linked tutorial, with mode="constrained". The training genes are 1K, as expected. Once I visualize the diagnosis plots using plot_training_scores, however, the result is the following.

image

Basically, all the training scores are between 0.952 and 0.999 because sparsity_sc and sparsity_sp are both 0 for all genes, and the predictions on test genes yield an auc_score of 0. This issue happens for other two pairs of scRNA-seq/spatial datasets that I'm using, so I think I'm missing some steps in the pipeline.

I'm wondering which could be the reason for such behaviour. Hope you can help me, I would really appreciate it!

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

1 participant