Open AIYUE1211 opened 3 months ago
Hi,
I'm facing the same problem as you. Can you reproduce the results of the unsupervised metrics presented in the authors' paper?
Hi,
I'm facing the same problem as you and raised it couple of weeks ago. It will be great if you can share your thoughts. Thanks.
Dr. Yahui Long,
Sorry to bother you. I have a couple of questions and issues regarding the calculation of two unsupervised metrics. I have read your SpatialGlue paper and code, but I'm encountering some discrepancies between my results and those presented in your paper when implementing the unsupervised metrics of Moran's I and Jaccard Similarity. I'm writing to respectfully inquire if there are any specific precautions or nuances that I should be aware of when calculating these metrics. I've outlined below how I'm currently calculating Moran's I scores and Jaccard Similarity, and I would greatly appreciate any guidance or insights you can provide.
moran I:
I have adopted the implementation from Squidpy, utilizing the integrated embeddings and spatial coordinates of each cluster as input. I have set the n_neighs parameter to either 4 or 6, depending on the data type, and my code snippet is as follows:
moranI_scores_per_cluster = {} for cluster in unique_clusters: sub_adata = adata[adata.obs['SG'] == cluster, :].copy() sub_adata.obsm['spatial'] = adata[sub_adata.obs_names, :].obsm['spatial'].copy()
Regarding moran I, I kindly request your confirmation on whether this calculation process is correct. and if there are any additional precautions or considerations I should be aware of when selecting and adjusting the parameters?
Thank you very much for your time and assistance.