Commit 1788456e authored by smorabit's avatar smorabit
Browse files

small change to ReassignModules

parent 73b8c7df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -91,7 +91,8 @@ ReassignModules <- function(
      cur %>% subset(kME < 0)
    }))
    if(nrow(neg_df) == 0){
      stop('No genes to reassign, all kMEs of assigned modules are greater than 0.')
      # warning('No genes to reassign, all kMEs of assigned modules are greater than 0.')
      return(seurat_obj)
    }
    rownames(neg_df) <- 1:nrow(neg_df)