-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ploidy #19
Comments
A package to check out |
A possible mixed ploidy dataset that looks pretty suitable as an example is: |
An interesting paper detailing tools and theory |
There is now a |
We now have |
A quick polyploid parser for a vector of genotypes:
|
We now have the full ploidy infrastructure in main. We don't do anything with multiple ploidy data, but in principle we do have the infrastructure for it. |
A lot of pop gen formulae for mixed ploidy rely on computing the pop frequencies as mean of individual frequencies (i.e. standardising the impact of ploidy so that the individual is the unit of replication, rather than the allele; this distinction is not important when dealing with uniform ploidy). If we adapt a couple of the cpp functions to compute frequencies from individual frequencies, then we should be able to easily adapt a lot of functions to multiple ploidy. |
I'm unable to compile on my work Mac... but the changes look fairly simple in the cpp code? Do you think you can add these in please? We should absolutely make the full push to multiple ploidy - the plant genetics/genomics community will be grateful! |
Compiling on Mac requires some set up: https://cran.r-project.org/bin/macosx/tools/ |
It's more of a permissions thing on my Mac at ARU... I'll see what I can do! If I can get it working maybe we can meet and chat about what would need to be done :) Cheers! |
We could support multiple ploidy. A column can only contain one vector, so storing the ploidy information there is difficult. However, we could simply add a ploidy column to the
$fam
slot of thebigSNP
object in the attributes ofgenotypes
. To implement that, we would need:ploidy
attribute to thegenotypes
column, with an integer corresponding to the ploidy of all individuals (if it is the same) or '0' to indicate multiple ploidy. Then we should make sure that functions that rely on diploids check forploidy=2
.The text was updated successfully, but these errors were encountered: