Skip to content

Commit

Permalink
Update spatial_interaction.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed May 23, 2024
1 parent 64586f9 commit c098f45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/spatial_interaction.R
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,7 @@ specificCellCellcommunicationScores <- function(gobject,

# get minimum adjusted p.value that is not zero
all_p.adj <- comScore[["p.adj"]]
# TODO catch when len = 0
lowest_p.adj <- min(all_p.adj[all_p.adj != 0])
comScore[, PI := ifelse(p.adj == 0, log2fc * (
-log10(lowest_p.adj)), log2fc * (-log10(p.adj)))]
Expand Down

0 comments on commit c098f45

Please sign in to comment.