Skip to content

Commit

Permalink
Update split_and_rephase.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mmollina authored Oct 20, 2023
1 parent 42266c4 commit f5960f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/split_and_rephase.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#'
#' @param phase.config which phase configuration should be used. "best" (default)
#' will choose the maximum likelihood phase configuration
#'
#' @param tol.merge the desired accuracy for merging maps (default = 10e-04)
#'
#' @param tol.final the desired accuracy for the final map (default = 10e-04)
#'
Expand Down Expand Up @@ -51,6 +53,7 @@ split_and_rephase <- function(input.map,
gap.threshold = 5,
size.rem.cluster = 1,
phase.config = "best",
tol.merge = 10e-4,
tol.final = 10e-4,
verbose = TRUE){
if (!inherits(input.map, "mappoly.map")) {
Expand Down Expand Up @@ -119,10 +122,11 @@ split_and_rephase <- function(input.map,
verbose = FALSE)
}
else {
newmap <- merge_maps(list(newmap, temp.maps[[i]]),
newmap <- merge_maps(map.list = list(newmap, temp.maps[[i]]),
twopt = twopt,
thres.twopt = 10,
thres.hmm = 50)
thres.hmm = 50,
tol = tol.merge)
}
newmap <- filter_map_at_hmm_thres(newmap, thres.hmm = 0.01)
}
Expand Down

0 comments on commit f5960f5

Please sign in to comment.