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

propSNPVar #9

Closed
ljbrzozowski opened this issue Apr 1, 2022 · 4 comments
Closed

propSNPVar #9

ljbrzozowski opened this issue Apr 1, 2022 · 4 comments

Comments

@ljbrzozowski
Copy link

Hi, I was wondering if you could provide documentation about the 'propSnpVar' provided in the output of the 'runSingleTraitGwas' function? Mostly, I'm not sure how to get from the 'propSnpVar' to percent phenotypic variation explained. Thanks!

@BartJanvanRossum
Copy link
Contributor

Sorry for the slow reply. Indeed the documentation for propSnpVar seems to be completely lacking from the documentation. I will make sure it is included in the next version.
The proportion is computed as follows: beta^2 * var(snp) / var(pheno)
Here beta is the snp effect, var(snp) the variance for the snp and var(pheno) the variance of the phenotypic values.

@MARCPUCV
Copy link

Hi,
I have a question. Is the var(snp) the same genetic variance? where you can extract the var(snp)? Thanks!!

@BartJanvanRossum
Copy link
Contributor

There is no function to extract the variance for each snp, however you can compute it from the marker matrix like this:

apply(X = markers, MARGIN = 2, FUN = var)

So var(snp) is the variance for the snp in the marker matrix

@BartJanvanRossum
Copy link
Contributor

This is now documented in the vignette of the new package version that just made it to CRAN

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

3 participants