We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a bug in the default shuffling algorithm for shufflepop and ia that comes down to numerical precision. The general process is:
shufflepop
ia
The problem occurs when there are triploids and 1/3 by 3 doesn't always equal 1.
mat <- structure(c(0.333333333333333, 0.333333333333333, 0.333333333333333, 0.333333333333333, 0, 0, 0.333333333333333, 0, 0.666666666666667, 0.666666666666667, 0.333333333333333, 0.666666666666667), .Dim = c(4L, 3L), .Dimnames = list(structure(c("1", "2", "3", "5"), .Names = c("1", "2", "3", "4")), c("D13.000", "D13.144", "D13.190"))) bucket <- colSums(mat) * 3 bucket ## D13.000 D13.144 D13.190 ## 4 1 7 rep(1:length(bucket), bucket) ## [1]11112333333 print(bucket, dig = 20) ## D13.000 D13.144 D13.190 ## 4.0000000000000000000 1.0000000000000000000 6.9999999999999991118
A control scheme to check for the correct number of alleles is needed.
The text was updated successfully, but these errors were encountered:
Fixed with 4978358
Sorry, something went wrong.
zkamvar
No branches or pull requests
There is a bug in the default shuffling algorithm for
shufflepop
andia
that comes down to numerical precision. The general process is:The problem occurs when there are triploids and 1/3 by 3 doesn't always equal 1.
A control scheme to check for the correct number of alleles is needed.
The text was updated successfully, but these errors were encountered: