Skip to content

Commit 814caad

Browse files
WT: Bug fix
1 parent a548894 commit 814caad

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

R/utils.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ print_heatmap_cell_type_proportions_RNA <- function(sc_obj, file_name, output_di
233233
voting_cell_type_proportion <- apply(voting_cell_type_proportion, 1, function(x){x/sum(x)})
234234
sample_count <- length(unique(sc_obj$sample))
235235
cell_count <- length(sc_obj$cell_name)
236-
output.plot <- pheatmap::pheatmap(voting_cell_type_proportion, cluster_rows = FALSE, cluster_cols = FALSE, display_numbers = TRUE, number_format = "%.3f", legend = FALSE) +
237-
ggplot2::ggtitle(paste0("RNA Data Integration\n(Cell Type Proportions)\n(", sample_count, " Samples, ", cell_count, " Cells)")) + ggplot2::theme(plot.title = ggplot2::element_text(size=18))
236+
output.plot <- pheatmap::pheatmap(voting_cell_type_proportion, cluster_rows = FALSE, cluster_cols = FALSE, display_numbers = TRUE, number_format = "%.3f", legend = FALSE, main = paste0("RNA Data Integration\n(Cell Type Proportions)\n(", sample_count, " Samples, ", cell_count, " Cells)"))
238237
ggplot2::ggsave(filename = paste0(output_dir, file_name), plot = output.plot, device = "png", width = 8, height = 8, units = "in")
239238
return(TRUE)
240239
}

0 commit comments

Comments
 (0)