Replies: 3 comments
-
Allele 0 in AlphaSimR is assumed to the the ancestral allele if you have used If you are simulating just an additive trait, then "addEff" is the thing you are after for comparing with GWAS, but note that "addEff" is a simulated effect (pulled from the assumed trait model), hence it's assumed known, and therefore does not need to be calculated. As to comparing between AlphaSimR and GWAS, yes you should be mindful how GWAS software you use will treat 0 and 1 (also be mindful that some software might consider 1 as major if it's more frequent). Do you really need to focus on the sign though? You could just look at the magnitude of the absolute effects too!? @gaynorr another one to be moved to discussion forum;) |
Beta Was this translation helpful? Give feedback.
-
Oh yes, now that I see the discussion tab, this would definitely fit in that category. So, if I am pulling the "addEff" slot from "SP" for the specific trait, then that is the additive effect in either direction. I did start with |
Beta Was this translation helpful? Give feedback.
-
@zjwinn above is an old GWAS script I have sitting around. I cleaned it up a little bit to be clearer. It doesn't address your original question, but I thought I'd share it in case it was useful. |
Beta Was this translation helpful? Give feedback.
-
Hi again,
This is more of a question rather than a bug or comment on a new feature. I am trying to pull the "true" effect of QTL out of the simulation parameters. I do this by going into the
SP
object and this allows me to pull something out of the slot called "addEff" which I am assuming are the additive effects of the QTL assigned for the trait. I am trying to compare this to GWAS estimate results. I am wondering, how is the effect calculated and what allele is considered the reference allele? I am assuming that the effect is calculated in reference to the major allele (e.g., 0) and the effect represents the additive effect of inheriting a copy of the alternate allele.So, If I am comparing the estimated effect of an MTA identified by GWAS and the "true" additive effect of the QTL, then I need to make sure the effect is always calculated in reference to the reference allele (0) and expressed as inheriting the alternate allele (2).
Is this assumption correct?
Thanks,
Zach
Beta Was this translation helpful? Give feedback.
All reactions