-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make drone quantitative values truly haploid? #519
Comments
I checked the |
Correct, IF we wanted to do anything, then the best place would be in BUT, should we really do this? There are points for this change and against it:
A strategy working with We should also think about environmental variances! Is environmental variance in drones the same as in workers and the queen? I think we don't know, also, traits will likely differ substantially between these three caste, sometimes they are only expressed in one caste and and not another! Should we maybe have some information/parameter in I think all these questions opened a can of worms!? Lot's of unknowns here. The key point and question for now is that we should discuss what to do in the intermediate period before we do the change/fix - because we are currently wrongly "hidding" this behaviour. Let's talk in one of the meetings on what to do or shoot ideas here! |
Sneaking on to your issue page here, because Gregor mentioned how useful you guys find it and I noticed this thread. I should mention that due to the way the AlphaSimR handles different levels of ploidy, there won't be any difference in genetic values or variances between a haploid individual or a fully inbred diploid individual with the same alleles (or any higher level of ploidy). Under the hood, AlphaSimR is working with relative dosage for genetic effects and not raw dosage. For example, a homozygous genotype will always have Here is an example:
|
@gaynorr thanks for coming here! The issue is that we are simulating drones as doubled haploid (—> diploid) individuals! We did this so that we could easily mate a queen (diploid) with these drones. We initially tried implementing them as haploid (we still have that code in the inactive background), but some downstream functionality became challenging - see #24. Any advice on this would be most welcome! |
Yeah, the genetic value of those diploids will be the same as if you were doing haploids instead so my point was that there is no concern there. If you really want haploids, you can do it with some combination of The catch with this approach is that AlphaSimR will create a new individual with each of these steps and thus a new pedigree entry. That means the internal AlphaSimR pedigree won't look like an actual bee pedigree. You'll get "individuals" that are really just gametes. Everything else in the package should work as expected. Of course the pedigrees aren't correct for bees with the DH trick either, because the actual pedigrees just track queens and ignore drones. If it were me, I'd probably focus on processing the pedigree. Whether you want diploid or haploid drones is mainly just an aesthetic choice. If you want something that is truly faithful to what is happening. You could use
|
@gaynorr hah, yeah this code of yours works like a charm. I will have to go back into #24 to understand what was bugging me at that time. Maybe the new
Hmm, why do you say this? Drones come from the queen only, which is what AlphaSimR does track in the following way
where the last output is
Aha, you mean that |
@gaynorr we've been testing this code and how it reflect on the genetic values and variances. We noticed that the variance of haploids and double haploids is twice the variance of the diploids - see the code below. Is this ok?
|
@janaobsteter, that would be correct because the initial population is roughly in Hardy-Weinberg equilibrium and the later are fully inbred (e.g. Va = 2(1+F)pqa). If you add |
@gregorgorjanc , adding the figures |
@gaynorr above are plots for genetic values of diploids and haploids generated from the diploids using These plots are generated using the same code as above in the thread - @janaobsteter maybe you add the code to the post for reproducibility. In the inbred case (bottom) the variance of genetic values in inbred diploids and haploids is the same (about 1). I find this somewhat confusing but I am struggling to put my confusion to words! Let's see. Diploid inbred var is In the non-inbred case (top) the variance of genetic values in non-inbred diploids is about 1/2 and haploids is about 1. While I struggled in the above inbred case, here I am really confused. |
@gregorgorjanc and @janaobsteter, the scaling of genotype dosage is causing these patterns. In diploids, I think the system in AlphaSimR is easiest to think about when considering increasing the ploidy level. In AlphaSimR, if you double an individual's chromosomes their genetic values remain unchanged. This is because the relative dosages are unchanged. A population having its chromosomes doubled will see no change in its genetic variances. An alternative way to handle ploidy would be to use absolute dosage instead of relative dosage. Meaning, you consider Neither formulations is biologically sound, because changing ploidy isn't going to be the same for all traits and species. I'm using the AlphaSimR formulation because I thought it made dealing with dominance degrees more intuitive. I also expect there could be some cases where it is approximately biologically correct. However, I would in general caution against comparing individuals with different ploidy levels. |
Silly question, but I am travelling and can’t easily access SIMplyBee code - how do we deal with drone quantitative values - do we take 0.5 of each value doubled-haploid (hence diploid fully inbred) or we forgot to do this?
The text was updated successfully, but these errors were encountered: