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

Euclidean distance calculation #1

Open
MakliyaMamat opened this issue Apr 21, 2024 · 2 comments
Open

Euclidean distance calculation #1

MakliyaMamat opened this issue Apr 21, 2024 · 2 comments

Comments

@MakliyaMamat
Copy link

I attempted to calculate the Euclidean distance matrix between the regional centers of mass using the provided sc and fc matrices. However, the result does not match the Euclidean distance matrix provided in the repository.

Could you please assist me in identifying the issue or guide me on how to correctly calculate the Euclidean distance based on our sc and fc matrices?
Thank you.

@MakliyaMamat MakliyaMamat changed the title Euclidean distance calculation discrepancy Euclidean distance calculation Apr 21, 2024
@faskowit
Copy link

faskowit commented May 1, 2024

Hello @Makliya -- what regional centers are you referring to? The .mat file provided in the repository has distance, fc, hemisphere labels, bins, and structural connectivity provided. We didn't include the ROI centroid data here, which if I remember correctly, was taken from the MNI space volumetric atlas. If you have Nx3 array of centroids, you can easily get the euclidean distance matrix using the command squareform(pdist(your_centroid_data)). The squareform command formats the pdist data nicely into a square.

@MakliyaMamat
Copy link
Author

Hi @faskowit. Thank you for your prompt response. I see that I need to use the coordinates of the regional centers of mass. There were minor problems with the command I ran, but I've resolved them now. Thank you.

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