Skip to content

Commit 3d00147

Browse files
committed
Bugfix to show markers from both datasets in the heatmap.
1 parent 129d71b commit 3d00147

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: SingleRBook
22
Title: The Book of SingleR
3-
Version: 1.17.1
4-
Date: 2024-11-17
3+
Version: 1.17.2
4+
Date: 2025-03-20
55
Authors@R: person('Aaron', 'Lun', role = c('aut', 'cre'), email="infinite.monkeys.with.keyboards@gmail.com")
66
Description:
77
Comprehensive guide to using the SingleR Bioconductor package

inst/book/multiple.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ we can simply extract the marker genes from the nested `DataFrame`s as shown in
162162
```{r pbmc-mono-heat, fig.asp=1, fig.cap="Heatmap of log-expression values in the PBMC dataset for all marker genes upregulated in monocytes in the Blueprint/ENCODE and Human Primary Cell Atlas reference datasets. Combined labels for each cell are shown at the top."}
163163
hpca.markers <- metadata(com.res2$orig.results$HPCA)$de.genes
164164
bpe.markers <- metadata(com.res2$orig.results$BPE)$de.genes
165-
mono.markers <- unique(unlist(hpca.markers$Monocyte, bpe.markers$Monocytes))
165+
mono.markers <- unique(unlist(c(hpca.markers$Monocyte, bpe.markers$Monocytes)))
166166
167167
library(scater)
168168
plotHeatmap(logNormCounts(pbmc),

0 commit comments

Comments
 (0)