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

Question on computing PGS from beta_auto and G #528

Open
scienception opened this issue Dec 18, 2024 · 2 comments
Open

Question on computing PGS from beta_auto and G #528

scienception opened this issue Dec 18, 2024 · 2 comments

Comments

@scienception
Copy link

scienception commented Dec 18, 2024

Hi Florian!
I had a question regarding this matrix, vector multiplication in file code/example-with-provided-LD.R. Why is beta_auto multiplied by map_pgs2$beta? I thought it would be beta_auto only.

pred_auto <- big_prodVec(G, beta_auto * map_pgs2$beta,
                         ind.col = map_pgs2[["_NUM_ID_"]],
                         ncores = NCORES)
@scienception
Copy link
Author

map_pgs2$beta seems to be a vector of 1s. I guess my question is why bother multiplying by 1?

@privefl
Copy link
Owner

privefl commented Dec 18, 2024

It's in case there is some allele switching needed to match between the two datasets.

@privefl privefl transferred this issue from privefl/paper-infer Dec 18, 2024
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