-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to run NCEM for own spatial data? #107
Comments
Hi @ankitbioinfo, yes you can run the analysis on your own data by just switching the tutorial code to
and by selecting a radius that is suited for the interactions you want to analyze in your data. The ideal radius can also be obtained by running an ablation study over multiple resolutions and finding the best performing radius for your dataset. I hope this answers your question. |
Hi @AnnaChristina, Thank you for the answer. I ran with following command as you suggested.
And got the following output.
I am still not sure what causing the above error. |
hi @ankitbioinfo I believe the suggested code has an error ncem.data = customLoader(...) should be from ncem.data import customLoader
loader = customLoader(...) |
Hi Anna,
I want to use NCEM for other MERFISH data to compare with other tools that how the information differs. I followed your tutorial
https://github.com/theislab/spatial_scog_workshop_2022/blob/main/ncem/tutorial_ncem.ipynb
but I don't understand how to create customLoader part for my own data.
Compare to your anndata [ad = sq.datasets.mibitof()]structure.
AnnData object with n_obs × n_vars = 3309 × 36
obs: 'row_num', 'point', 'cell_id', 'X1', 'center_rowcoord', 'center_colcoord', 'cell_size', 'category', 'donor', 'Cluster', 'batch', 'library_id'
var: 'mean-0', 'std-0', 'mean-1', 'std-1', 'mean-2', 'std-2'
uns: 'Cluster_colors', 'batch_colors', 'neighbors', 'spatial', 'umap'
obsm: 'X_scanorama', 'X_umap', 'spatial'
obsp: 'connectivities', 'distances'
My anndata object have expression matrix in adata.X,
cluster annotation in
obs: 'clusters'
and spatial coordinate in
obsm: 'spatial'
That's all I have in anndata. With this information could I able to repeat the tutorial for ncem.sender_similarity_analysis?
Thanks.
The text was updated successfully, but these errors were encountered: