Skip to content

Commit

Permalink
Up
Browse files Browse the repository at this point in the history
Signed-off-by: Daena Rys <[email protected]>
  • Loading branch information
Daenarys8 committed May 21, 2024
1 parent 72c912d commit 0493a7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: mia
Type: Package
Version: 1.13.14
Version: 1.13.15
Authors@R:
c(person(given = "Felix G.M.", family = "Ernst", role = c("aut"),
email = "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,4 @@ Changes in version 1.13.x
+ Rename subsampleCounts to rarefyAssay
+ Rename perSampleDominant* functions to getDominant and addPerSampleDominant*
functions to addDominant
+ Fix bug in mergeFeaturesByPrevalence
8 changes: 4 additions & 4 deletions R/merge.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
call. = FALSE)
}
# This is done otherwise we lose NA values
if ( !na.rm && any(is.na(f)) ) {
f <- as.character(f)
f[is.na(f)] <- "NA"
if (!na.rm && any(is.na(f))) {
f <- as.character(f)
f[ is.na(f) ] <- "NA"
}
if(is.character(f)){
f <- factor(f)
Expand Down Expand Up @@ -125,7 +125,7 @@
#' @importFrom scuttle summarizeAssayByGroup
.merge_cols <- function(x, f, archetype = 1L, ...){
# input check
if( .is_a_string(f) && f %in% colnames(rowData(x)) ){
if( .is_a_string(f) && f %in% colnames(colData(x)) ){
f <- colData(x)[[ f ]]
}
f <- .norm_f(ncol(x), f, "columns")
Expand Down

0 comments on commit 0493a7f

Please sign in to comment.