Skip to content

Commit

Permalink
chore: change libsize 0 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Oct 16, 2024
1 parent 192cb30 commit ad6d004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/normalize.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ normalizeGiotto <- function(
.lib_norm_giotto <- function(mymatrix, scalefactor) {
libsizes <- colSums_flex(mymatrix)

if (any(libsizes == 0)) {
if (0 %in% libsizes) {
warning(wrap_txt("Total library size or counts for individual spat
units are 0.
This will likely result in normalization problems.
Expand Down

0 comments on commit ad6d004

Please sign in to comment.