Skip to content

Commit

Permalink
Update PredictCellProb.R
Browse files Browse the repository at this point in the history
  • Loading branch information
pcamara authored Jul 1, 2024
1 parent b0d88d4 commit 110c82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/PredictCellProb.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ PredictCellProb <- function(bulk,

#normalize cell prob st cell prob sum to 1
colmin <- apply(output$PredictCellProb$infer_cell.prob, 2, min)
cellprob_scale <- t(t(output$PredictCellProb$infer_cell.prob)+abs(colmin))
cellprob_scale <- t(t(output$PredictCellProb$infer_cell.prob)-colmin)
output$Normalized_cell.prob = t(t(cellprob_scale)/colSums(cellprob_scale))

return(output)
Expand Down

0 comments on commit 110c82d

Please sign in to comment.