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

genherit1.asreml.R - Gmat #1

Open
lucasph97 opened this issue Nov 12, 2024 · 3 comments
Open

genherit1.asreml.R - Gmat #1

lucasph97 opened this issue Nov 12, 2024 · 3 comments

Comments

@lucasph97
Copy link

Hi there Sam and Ari,
I have been looking at your code on heritability as we are aiming to get these outcomes as well for a breeding program. I was wondering if you could clarify for me if the Gmat corresponds to the numerator/genomic relationship matrix used in the vm() function in the asreml syntax?
Say for instance the genetic model is random =~ diag(Env):vm(Geno, GRM) + diag(Env):ide(Geno), would then the Gmat in genherit1.asreml.R be GRM?

Many thanks in advance
regards,
Lucas

@ariavda
Copy link

ariavda commented Nov 13, 2024

Hi Lucas,

Firstly, genherit1 does not handle multi-site trials. I have a version in development, genherit, that would allow multi-site analysis like the model you present. The Gmat argument is for compound terms like yours (or a single term for which GRM is Gmat for example, and where narrow sense heritability is rquired)), but without the diag(Env). That is
vm(Geno, GRM) + ide(Geno) so that we want the broad sense heritability (getting the correct PEV of course will require the only argument to be specified. The code doesn't work out the full variance matrix. It has to be done manually outside genherit1.
lastly, you can do what you want by passing arguments to predict via ..., for example levels to go through levels of Env. Given your expertise, I think you can work out how to "loop" through Env to get the heritabilities you want. Gmat will need to be calculated for each level of Env.

I hope this helps,

Ari

@lucasph97
Copy link
Author

Hi Ari,
Many thanks for your reply.
Thanks for the clarification on genherit1 working only for single site trials. I had noticed that but was trying to figure out the logics on the single-site approach to move to the multi-site case. Actually I have been playing around with loops across Env's to get the PEV (using the only argument as you mentioned) so it seems like I'm on the right track
Still have to work around on getting the Gmat for each Env, but with the feedback that you have provided I think I can make my way through
Thanks again for taking the time to reply. Looking forward for the multi-site version of genherit!

@ariavda
Copy link

ariavda commented Nov 19, 2024 via email

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