Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fix a bug in netAnalysis_signalingRole_heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
sqjin authored Apr 3, 2021
1 parent 3567804 commit a52e182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,7 @@ netAnalysis_signalingRole_heatmap <- function(object, signaling = NULL, pattern
pSum[idx1] <- values.assign[match(1:length(idx1), position)]
}

ha1 = rowAnnotation(Strength = anno_barplot(rowSums(mat.ori), border = FALSE), show_annotation_name = FALSE)
ha1 = rowAnnotation(Strength = anno_barplot(pSum, border = FALSE), show_annotation_name = FALSE)

if (min(mat, na.rm = T) == max(mat, na.rm = T)) {
legend.break <- max(mat, na.rm = T)
Expand All @@ -2385,7 +2385,7 @@ netAnalysis_signalingRole_heatmap <- function(object, signaling = NULL, pattern
row_names_side = "left",row_names_rot = 0,row_names_gp = gpar(fontsize = font.size),column_names_gp = gpar(fontsize = font.size),
width = unit(width, "cm"), height = unit(height, "cm"),
column_title = title,column_title_gp = gpar(fontsize = font.size.title),column_names_rot = 90,
heatmap_legend_param = list(title = "Relative strength", title_gp = gpar(fontsize = 8, fontface = "plain"),title_position = "leftcenter-rot",
heatmap_legend_param = list(title_gp = gpar(fontsize = 8, fontface = "plain"),title_position = "leftcenter-rot",
border = NA, at = legend.break,
legend_height = unit(20, "mm"),labels_gp = gpar(fontsize = 8),grid_width = unit(2, "mm"))
)
Expand Down

0 comments on commit a52e182

Please sign in to comment.