Skip to content

Commit

Permalink
Fix getDivergence (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman authored Nov 4, 2024
1 parent 1c53e54 commit 161b209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.15.2
Version: 1.15.3
Authors@R:
c(person(given = "Tuomas", family = "Borman", role = c("aut", "cre"),
email = "tuomas.v.borman@utu.fi",
Expand Down
2 changes: 1 addition & 1 deletion R/addDivergence.R
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ setMethod("getDivergence", signature = c(x="SummarizedExperiment"),
reference <- rep(reference, ncol(mat))
}
# Check that all reference samples are included in the data
if( !all(reference %in% colnames(mat)) ){
if( !all(reference %in% colnames(mat) | is.na(reference)) ){
stop("All reference samples must be included in the data.",
call. = FALSE)
}
Expand Down

0 comments on commit 161b209

Please sign in to comment.