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

Why the diagonal of relatedness matrix is not equal to 1 or a constant value? #277

Open
xiekunwhy opened this issue Jun 26, 2023 · 1 comment

Comments

@xiekunwhy
Copy link

Hi,

Why the diagonal of relatedness matrix generated by gemma is not equal to 1 or a constant value? Column-wise centralization results?

image

Best,
Kun

@johanzi
Copy link

johanzi commented Jul 17, 2024

The centered relatedness matrix does not scale each column of the genotype matrix, so the main diagonal of the resulting relatedness matrix will not be close to 1s (usually around 0.3 depending on maf etc.). If you use the scaled relatedness matrix (.sXX), then the main diagonal should be made of values that are very close to 1s. (https://groups.google.com/g/gemma-discussion/c/34FyII8oXUM)

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