Skip to content

Commit 7ace1ab

Browse files
committed
Only extract indices of the top genes from scoreMarkers, for efficiency.
1 parent de25043 commit 7ace1ab

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: SingleR
22
Title: Reference-Based Single-Cell RNA-Seq Annotation
3-
Version: 2.13.4
4-
Date: 2026-03-09
3+
Version: 2.13.5
4+
Date: 2026-04-09
55
Authors@R: c(person("Dvir", "Aran", email="dvir.aran@ucsf.edu", role=c("aut", "cph")),
66
person("Aaron", "Lun", email="infinite.monkeys.with.keyboards@gmail.com", role=c("ctb", "cre")),
77
person("Daniel", "Bunis", role="ctb"),
@@ -33,7 +33,7 @@ Suggests:
3333
BiocStyle,
3434
BiocParallel,
3535
SingleCellExperiment,
36-
scrapper (>= 1.3.14),
36+
scrapper (>= 1.5.16),
3737
scRNAseq,
3838
ggplot2,
3939
pheatmap,

R/trainSingleR.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,8 @@ trainSingleR <- function(
437437
compute.delta.detected=FALSE,
438438
compute.delta.mean=FALSE,
439439
compute.auc=compute.auc,
440-
compute.cohens.d=compute.cohens.d
440+
compute.cohens.d=compute.cohens.d,
441+
top.index.only=TRUE
441442
),
442443
de.args
443444
)
@@ -450,7 +451,7 @@ trainSingleR <- function(
450451
if (g1 == g2) {
451452
pairwise[[g1]][[g2]] <- character(0)
452453
} else {
453-
pairwise[[g1]][[g2]] <- all.genes[pairwise[[g1]][[g2]]$index]
454+
pairwise[[g1]][[g2]] <- all.genes[pairwise[[g1]][[g2]]]
454455
}
455456
}
456457
}

0 commit comments

Comments
 (0)