Skip to content

Commit

Permalink
Simplify sysdata object
Browse files Browse the repository at this point in the history
  • Loading branch information
stufield committed Mar 22, 2024
1 parent f4dc94c commit aba9d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
5 changes: 3 additions & 2 deletions R/utils-lift.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ map_k2ver <- c(
# bridge: direction of the bridge
.get_lift_ref <- function(matrx = c("plasma", "serum"), bridge) {
matrx <- match.arg(matrx)
df <- lref[[matrx]][, c("SeqId", bridge)]
setNames(df[[2L]], df[[1L]])
df <- dplyr::select(lift_master, SeqId, paste0(matrx, "_", bridge))
df[is.na(df)] <- 1.0 # 1.0 scale factor for NAs
setNames(df[[2L]], df$SeqId)
}


Expand Down

0 comments on commit aba9d4d

Please sign in to comment.