Skip to content

Commit

Permalink
fix for 1 sender cell type in LFC plot
Browse files Browse the repository at this point in the history
  • Loading branch information
csangara committed Aug 20, 2024
1 parent d8a5b5a commit 193f03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vignettes/seurat_steps.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ DE_table_top_ligands <- lapply(
DE_table_top_ligands <- DE_table_top_ligands %>% reduce(., full_join) %>%
column_to_rownames("gene")
vis_ligand_lfc <- as.matrix(DE_table_top_ligands[rev(best_upstream_ligands), ])
vis_ligand_lfc <- as.matrix(DE_table_top_ligands[rev(best_upstream_ligands), , drop = FALSE])
p_lfc <- make_threecolor_heatmap_ggplot(vis_ligand_lfc,
"Prioritized ligands", "LFC in Sender",
Expand Down
2 changes: 1 addition & 1 deletion vignettes/seurat_steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ DE_table_top_ligands <- lapply(
DE_table_top_ligands <- DE_table_top_ligands %>% reduce(., full_join) %>%
column_to_rownames("gene")

vis_ligand_lfc <- as.matrix(DE_table_top_ligands[rev(best_upstream_ligands), ])
vis_ligand_lfc <- as.matrix(DE_table_top_ligands[rev(best_upstream_ligands), , drop = FALSE])

p_lfc <- make_threecolor_heatmap_ggplot(vis_ligand_lfc,
"Prioritized ligands", "LFC in Sender",
Expand Down

0 comments on commit 193f03e

Please sign in to comment.