Skip to content

Commit

Permalink
use purrr instead of stats
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Dec 2, 2024
1 parent f8be647 commit 8694ede
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.3.1
VignetteBuilder: knitr
4 changes: 2 additions & 2 deletions R/dragen.R
Original file line number Diff line number Diff line change
Expand Up @@ -791,13 +791,13 @@ dragen_ploidy_estimation_metrics_read <- function(x) {
raw <- readr::read_lines(x)
assertthat::assert_that(grepl("PLOIDY ESTIMATION", raw[1]))
fun1 <- function(x) {
setNames(
purrr::set_names(
as.character(glue("cov_{tolower(x)}_div_auto_median")),
as.character(glue("{x} median / Autosomal median"))
)
}
fun2 <- function(x) {
setNames(
purrr::set_names(
as.character(glue("cov_{tolower(x)}_median")),
as.character(glue("{x} median coverage"))
)
Expand Down

0 comments on commit 8694ede

Please sign in to comment.