Skip to content

Commit

Permalink
Import S4Vectors and use values arg from append
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Aug 17, 2023
1 parent 1fb9b2b commit 0a0d066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Imports:
coin,
MASS,
ggplot2,
S4Vectors,
stats,
methods
Suggests:
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ relativeAb <- function(se, assay = 1L) {
res <- expr_data / div
assaylist <- assays(se)
newalist <- append(
assaylist, value = S4Vectors::SimpleList(rel_abs = res), after = 0L
assaylist, values = S4Vectors::SimpleList(rel_abs = res), after = 0L
)
assays(se) <- newalist
se
Expand Down

0 comments on commit 0a0d066

Please sign in to comment.