You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @param block_lengths An optional vector with block lengths. If `NULL`, block lengths will be computed.
2183
2187
#' @param f4mode If `TRUE`: f4 is computed from allele frequencies `a`, `b`, `c`, and `d` as `(a-b)*(c-d)`. if `FALSE`, D-statistics are computed instead, defined as `(a-b)*(c-d) / ((a + b - 2*a*b) * (c + d - 2*c*d))`, which is the same as `(P(ABBA) - P(BABA)) / (P(ABBA) + P(BABA))`.
2184
2188
#' @param allsnps Use all SNPs with allele frequency estimates in every population of any given population quadruple. If `FALSE` (the default) only SNPs which are present in all populations in `popcombs` (or any given model in it) will be used. Setting `allsnps = TRUE` in the presence of large amounts of missing data might lead to false positive results.
2189
+
#' @param poly_only Only keep SNPs with mean allele frequency not equal to 0 or 1.
2190
+
#' @param snpwt A vector of SNP weights
2191
+
#' @param keepsnps A vector of SNP IDs to keep
2185
2192
#' @param verbose Print progress updates
2186
2193
#' @return A data frame with per-block f4-statistics for each population quadruple.
0 commit comments