Skip to content

Commit

Permalink
fix normalization step for HDF5
Browse files Browse the repository at this point in the history
  • Loading branch information
josschavezf committed Oct 18, 2023
1 parent 280d8a8 commit fabe948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/auxiliary_giotto.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ libNorm_giotto = function(mymatrix, scalefactor){
#' @keywords internal
logNorm_giotto = function(mymatrix, base, offset) {

if(methods::is(mymatrix, 'HDF5Matrix')) {
mymatrix@x = log(mymatrix + offset)/log(base)
if(methods::is(mymatrix, 'DelayedArray')) {
mymatrix = log(mymatrix + offset)/log(base)
# } else if(methods::is(mymatrix, 'DelayedMatrix')) {
# mymatrix = log(mymatrix + offset)/log(base)
} else if(methods::is(mymatrix, 'dgCMatrix')) {
Expand Down

0 comments on commit fabe948

Please sign in to comment.