Skip to content

Commit

Permalink
Calc allele freqs before rm twins
Browse files Browse the repository at this point in the history
  • Loading branch information
zenalapp committed Sep 5, 2023
1 parent 3ae95a2 commit 472b965
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/bistro.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#' @param human_ids Vector of human ids from the SampleName column in
#' `human_profiles` for which to compute log10_lrs. If NULL, all ids in the
#' input dataframe will be used. Default: NULL
#' @param rm_twins A boolean indicating whether or not to remove likely twins
#' from the human database (identical STR profiles). Default: TRUE
#' @param rm_twins A boolean indicating whether or not to remove likely twins (identical STR profiles)
#' from the human database prior to identifying matches. Default: TRUE
#' @param model_degrad A boolean indicating whether or not to model peak
#' degradation.
#' Used for `modelDegrad` argument in [euroformix::contLikSearch()].
Expand Down Expand Up @@ -115,14 +115,14 @@ bistro <-
time_limit
)

if (rm_twins) {
human_profiles <- rm_twins(human_profiles)
}

if (calc_allele_freqs) {
pop_allele_freqs <- calc_allele_freqs(human_profiles)
}

if (rm_twins) {
human_profiles <- rm_twins(human_profiles)
}

message("Formatting bloodmeal profiles")

if (is.null(bloodmeal_ids)) {
Expand Down

0 comments on commit 472b965

Please sign in to comment.